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

31 lines
829 B
Nix
Raw Normal View History

2016-04-15 03:06:08 +02:00
{ stdenv, fetchFromGitHub, cmake, dmenu }:
stdenv.mkDerivation rec {
name = "j4-dmenu-desktop-${version}";
2018-01-26 14:09:46 +01:00
version = "2.16";
2016-04-15 03:06:08 +02:00
src = fetchFromGitHub {
owner = "enkore";
repo = "j4-dmenu-desktop";
rev = "r${version}";
2018-01-26 14:09:46 +01:00
sha256 = "0714cri8bwpimmiirhzrkbri4xi24k0za6i1aw94d3fnblk2dg9f";
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
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;
maintainers = with maintainers; [ ericsagnes ];
platforms = with platforms; unix;
2016-04-15 03:06:08 +02:00
};
}