47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, dmenu, fmt, spdlog }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "j4-dmenu-desktop";
|
|
version = "3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "enkore";
|
|
repo = "j4-dmenu-desktop";
|
|
rev = "r${finalAttrs.version}";
|
|
hash = "sha256-Yrn6d2x9xOSV5FK0YP/mfD6BG9DeWlWobVafEzVYVJY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/main.cc \
|
|
--replace "dmenu -i" "${lib.getExe dmenu} -i"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
fmt
|
|
spdlog
|
|
];
|
|
|
|
mesonFlags = [
|
|
# Disable unit tests.
|
|
"-Denable-tests=false"
|
|
# Copy pre-generated shell completions.
|
|
"-Dgenerate-shell-completions=disabled"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/enkore/j4-dmenu-desktop/blob/${finalAttrs.src.rev}/CHANGELOG";
|
|
description = "Wrapper for dmenu that recognizes .desktop files";
|
|
homepage = "https://github.com/enkore/j4-dmenu-desktop";
|
|
license = licenses.gpl3Only;
|
|
mainProgram = "j4-dmenu-desktop";
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|