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

34 lines
811 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, dmenu }:
2016-04-15 02:06:08 +01:00
stdenv.mkDerivation rec {
2019-07-04 09:22:18 +01:00
pname = "j4-dmenu-desktop";
2020-10-18 15:45:57 +01:00
version = "2.18";
2016-04-15 02:06:08 +01:00
src = fetchFromGitHub {
2019-07-04 09:22:18 +01:00
owner = "enkore";
repo = pname;
rev = "r${version}";
2020-10-18 15:45:57 +01:00
sha256 = "1gxpgifzy0hnpd0ymw3r32amzr32z3bgb90ldjzl438p6h1q0i26";
2016-04-15 02:06:08 +01: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 09:22:18 +01:00
cmakeFlags = [
"-DWITH_TESTS=OFF"
"-DWITH_GIT_CATCH=OFF"
];
2016-04-15 02:06:08 +01:00
meta = with lib; {
2016-04-15 02:06:08 +01:00
description = "A wrapper for dmenu that recognize .desktop files";
2019-07-04 09:22:18 +01:00
homepage = "https://github.com/enkore/j4-dmenu-desktop";
license = licenses.gpl3;
maintainers = with maintainers; [ ericsagnes ];
2019-07-04 09:22:18 +01:00
platforms = platforms.unix;
2016-04-15 02:06:08 +01:00
};
}