2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, dmenu }:
|
2016-04-15 03:06:08 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-04-15 03:06:08 +02:00
|
|
|
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;
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
2019-07-04 10:22:18 +02:00
|
|
|
platforms = platforms.unix;
|
2016-04-15 03:06:08 +02:00
|
|
|
};
|
|
|
|
}
|