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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
811 B
Nix
Raw Normal View History

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