Files
nixpkgs/pkgs/by-name/pm/pmenu/package.nix
quantenzitrone f690155396 various: rename references from libXrender to libxrender
this shouldn't create any rebuilds
2026-02-06 00:29:19 +01:00

66 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
writeText,
fontconfig,
imlib2,
libx11,
libxext,
libxft,
libxinerama,
libxrender,
conf ? null,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pmenu";
version = "3.1.1";
src = fetchFromGitHub {
owner = "phillbush";
repo = "pmenu";
rev = "v${finalAttrs.version}";
hash = "sha256-7NI5az3LxOYEnsts8Qqi3gvO3dXpNjPDOTW2c5Y25Lc=";
};
buildInputs = [
fontconfig
imlib2
libx11
libxext
libxft
libxinerama
libxrender
];
postPatch =
let
configFile =
if lib.isDerivation conf || builtins.isPath conf then conf else writeText "config.h" conf;
in
lib.optionalString (conf != null) "mv ${configFile} config.h";
makeFlags = [
"INSTALL=install"
"PREFIX=\${out}"
];
meta = {
description = "Pie-menu tool";
homepage = "https://github.com/phillbush/pmenu";
changelog = "https://github.com/phillbush/pmenu/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
longDescription = ''
πmenu is a pie menu utility for X. πmenu receives a menu specification in
stdin, shows a menu for the user to select one of the options, and outputs
the option selected to stdout.
'';
maintainers = [ ];
platforms = lib.platforms.unix;
mainProgram = "pmenu";
# The last successful Darwin Hydra build was in 2023
broken = stdenv.hostPlatform.isDarwin;
};
})