1 { lib, stdenv, fetchFromGitHub, cmake, dmenu }:
3 stdenv.mkDerivation (finalAttrs: {
4 pname = "j4-dmenu-desktop";
5 version = "unstable-2023-09-12";
7 src = fetchFromGitHub {
9 repo = "j4-dmenu-desktop";
10 rev = "7e3fd045482a8ea70619e422975b52feabc75175";
11 hash = "sha256-8PmfzQkHlEdMbrcQO0bPruP3jaKEcr/17x0/Z7Jedh0=";
15 substituteInPlace src/main.cc \
16 --replace "dmenu -i" "${lib.getExe dmenu} -i"
19 nativeBuildInputs = [ cmake ];
21 # tests are fetching an external git repository
24 "-DWITH_GIT_CATCH=OFF"
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;