2016-04-15 01:06:08 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, dmenu }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "j4-dmenu-desktop-${version}";
|
2017-03-21 03:41:22 +00:00
|
|
|
version = "2.15";
|
2016-04-15 01:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "enkore";
|
|
|
|
repo = "j4-dmenu-desktop";
|
|
|
|
rev = "r${version}";
|
2017-03-21 03:41:22 +00:00
|
|
|
sha256 = "1yn45i3hpim2hriaqkq7wmawwsmkynvy2xgz7dg6p5r0ikw5bn1r";
|
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
|
|
|
|
cmakeFlags = [ "-DNO_TESTS:BOOL=ON" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A wrapper for dmenu that recognize .desktop files";
|
|
|
|
homepage = "https://github.com/enkore/j4-dmenu-desktop";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainer = with maintainers; [ ericsagnes ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2016-04-15 01:06:08 +00:00
|
|
|
};
|
|
|
|
}
|