nixpkgs-suyu/pkgs/applications/misc/j4-dmenu-desktop/default.nix

34 lines
813 B
Nix
Raw Normal View History

2016-04-15 03:06:08 +02:00
{ stdenv, fetchFromGitHub, cmake, dmenu }:
stdenv.mkDerivation rec {
2019-07-04 10:22:18 +02:00
pname = "j4-dmenu-desktop";
2020-10-18 16:45:57 +02:00
version = "2.18";
2016-04-15 03:06:08 +02:00
src = fetchFromGitHub {
2019-07-04 10:22:18 +02:00
owner = "enkore";
repo = pname;
rev = "r${version}";
2020-10-18 16:45:57 +02:00
sha256 = "1gxpgifzy0hnpd0ymw3r32amzr32z3bgb90ldjzl438p6h1q0i26";
2016-04-15 03:06:08 +02:00
};
postPatch = ''
sed -e 's,dmenu -i,${dmenu}/bin/dmenu -i,g' -i ./src/Main.hh
'';
nativeBuildInputs = [ cmake ];
# tests are fetching an external git repository
2019-07-04 10:22:18 +02:00
cmakeFlags = [
"-DWITH_TESTS=OFF"
"-DWITH_GIT_CATCH=OFF"
];
2016-04-15 03:06:08 +02:00
meta = with stdenv.lib; {
description = "A wrapper for dmenu that recognize .desktop files";
2019-07-04 10:22:18 +02:00
homepage = "https://github.com/enkore/j4-dmenu-desktop";
license = licenses.gpl3;
maintainers = with maintainers; [ ericsagnes ];
2019-07-04 10:22:18 +02:00
platforms = platforms.unix;
2016-04-15 03:06:08 +02:00
};
}