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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.0 KiB
Nix
Raw Normal View History

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