From 2ab46a9daecc2686fb8c947c542fb094c29d3bbd Mon Sep 17 00:00:00 2001 From: Eric Sagnes Date: Fri, 15 Apr 2016 10:06:08 +0900 Subject: [PATCH] j4-dmenu-desktop: init at 2.14 --- .../misc/j4-dmenu-desktop/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/applications/misc/j4-dmenu-desktop/default.nix diff --git a/pkgs/applications/misc/j4-dmenu-desktop/default.nix b/pkgs/applications/misc/j4-dmenu-desktop/default.nix new file mode 100644 index 000000000000..ad07c02f5084 --- /dev/null +++ b/pkgs/applications/misc/j4-dmenu-desktop/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchFromGitHub, cmake, dmenu }: + +stdenv.mkDerivation rec { + name = "j4-dmenu-desktop-${version}"; + version = "2.14"; + + src = fetchFromGitHub { + owner = "enkore"; + repo = "j4-dmenu-desktop"; + rev = "r${version}"; + sha256 = "14srrkz4qx8qplgrrjv38ri4pnkxaxaq6jy89j13xhna492bq128"; + }; + + postPatch = '' + sed -e 's,dmenu -i,${dmenu}/bin/dmenu -i,g' -i ./src/Main.hh + ''; + + nativeBuildInputs = [ cmake ]; + + # tests are fetching an external git repository + cmakeFlags = [ "-DNO_TESTS:BOOL=ON" ]; + + meta = with stdenv.lib; { + description = "A wrapper for dmenu that recognize .desktop files"; + homepage = "https://github.com/enkore/j4-dmenu-desktop"; + license = licenses.gpl3; + maintainer = with maintainers; [ ericsagnes ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bb8f6c2aa0a2..185dee1ce7c0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12827,6 +12827,8 @@ in bip = callPackage ../applications/networking/irc/bip { }; + j4-dmenu-desktop = callPackage ../applications/misc/j4-dmenu-desktop/default.nix { }; + jabref = callPackage ../applications/office/jabref/default.nix { }; jack_capture = callPackage ../applications/audio/jack-capture { };