2021-01-11 07:54:33 +00:00
|
|
|
{ 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
|
|
|
|
2021-01-11 07:54:33 +00: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;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
2019-07-04 09:22:18 +01:00
|
|
|
platforms = platforms.unix;
|
2016-04-15 02:06:08 +01:00
|
|
|
};
|
|
|
|
}
|