2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, dmenu }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "j4-dmenu-desktop";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "unstable-2023-09-12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "enkore";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "j4-dmenu-desktop";
|
|
|
|
rev = "7e3fd045482a8ea70619e422975b52feabc75175";
|
|
|
|
hash = "sha256-8PmfzQkHlEdMbrcQO0bPruP3jaKEcr/17x0/Z7Jedh0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2024-01-25 14:12:00 +00:00
|
|
|
substituteInPlace src/main.cc \
|
|
|
|
--replace "dmenu -i" "${lib.getExe dmenu} -i"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
# tests are fetching an external git repository
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_TESTS=OFF"
|
|
|
|
"-DWITH_GIT_CATCH=OFF"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/enkore/j4-dmenu-desktop/blob/${finalAttrs.src.rev}/CHANGELOG";
|
|
|
|
description = "A wrapper for dmenu that recognizes .desktop files";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/enkore/j4-dmenu-desktop";
|
2024-01-25 14:12:00 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
mainProgram = "j4-dmenu-desktop";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2024-01-25 14:12:00 +00:00
|
|
|
})
|