2016-04-15 01:06:08 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, dmenu }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-04 08:22:18 +00:00
|
|
|
pname = "j4-dmenu-desktop";
|
|
|
|
version = "2.17";
|
2016-04-15 01:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-07-04 08:22:18 +00:00
|
|
|
owner = "enkore";
|
|
|
|
repo = pname;
|
|
|
|
rev = "r${version}";
|
|
|
|
sha256 = "0v23fimkn83dcm5p53y2ymhklff3kwppxhf75sm8xmswrzkixpgc";
|
2016-04-15 01:06:08 +00: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 08:22:18 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_TESTS=OFF"
|
|
|
|
"-DWITH_GIT_CATCH=OFF"
|
|
|
|
];
|
2016-04-15 01:06:08 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A wrapper for dmenu that recognize .desktop files";
|
2019-07-04 08:22:18 +00: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 08:22:18 +00:00
|
|
|
platforms = platforms.unix;
|
2016-04-15 01:06:08 +00:00
|
|
|
};
|
|
|
|
}
|