biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / j4-dmenu-desktop / default.nix
blob9a50ac48740b39523c6d5230906d278aa581c76d
1 { lib, stdenv, fetchFromGitHub, cmake, dmenu }:
3 stdenv.mkDerivation (finalAttrs: {
4   pname = "j4-dmenu-desktop";
5   version = "unstable-2023-09-12";
7   src = fetchFromGitHub {
8     owner = "enkore";
9     repo = "j4-dmenu-desktop";
10     rev = "7e3fd045482a8ea70619e422975b52feabc75175";
11     hash = "sha256-8PmfzQkHlEdMbrcQO0bPruP3jaKEcr/17x0/Z7Jedh0=";
12   };
14   postPatch = ''
15     substituteInPlace src/main.cc \
16         --replace "dmenu -i" "${lib.getExe dmenu} -i"
17   '';
19   nativeBuildInputs = [ cmake ];
21   # tests are fetching an external git repository
22   cmakeFlags = [
23     "-DWITH_TESTS=OFF"
24     "-DWITH_GIT_CATCH=OFF"
25   ];
27   meta = with lib; {
28     changelog = "https://github.com/enkore/j4-dmenu-desktop/blob/${finalAttrs.src.rev}/CHANGELOG";
29     description = "Wrapper for dmenu that recognizes .desktop files";
30     homepage = "https://github.com/enkore/j4-dmenu-desktop";
31     license = licenses.gpl3Only;
32     mainProgram = "j4-dmenu-desktop";
33     maintainers = with maintainers; [ ericsagnes ];
34     platforms = platforms.linux;
35   };