summary refs log tree commit diff
path: root/pkgs/applications/misc/j4-dmenu-desktop/default.nix
blob: 6b4762c0de4787361c9da6922d75b4757a744c12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub, cmake, dmenu }:

stdenv.mkDerivation rec {
  name    = "j4-dmenu-desktop-${version}";
  version = "2.15";

  src = fetchFromGitHub {
    owner  = "enkore";
    repo   = "j4-dmenu-desktop";
    rev    = "r${version}";
    sha256 = "1yn45i3hpim2hriaqkq7wmawwsmkynvy2xgz7dg6p5r0ikw5bn1r";
  };

  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;
  };
}