mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 22:03:13 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, libX11, libXinerama, libXft, zlib, patches ? null
|
|
# update script dependencies
|
|
, gitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dmenu";
|
|
version = "5.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://dl.suckless.org/tools/dmenu-${version}.tar.gz";
|
|
sha256 = "sha256-Go9T5v0tdJg57IcMXiez4U2lw+6sv8uUXRWeHVQzeV8=";
|
|
};
|
|
|
|
buildInputs = [ libX11 libXinerama zlib libXft ];
|
|
|
|
inherit patches;
|
|
|
|
postPatch = ''
|
|
sed -ri -e 's!\<(dmenu|dmenu_path|stest)\>!'"$out/bin"'/&!g' dmenu_run
|
|
sed -ri -e 's!\<stest\>!'"$out/bin"'/&!g' dmenu_path
|
|
'';
|
|
|
|
preConfigure = ''
|
|
sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk
|
|
'';
|
|
|
|
makeFlags = [ "CC:=$(CC)" ];
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
url = "git://git.suckless.org/dmenu";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Generic, highly customizable, and efficient menu for the X Window System";
|
|
homepage = "https://tools.suckless.org/dmenu";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ pSub globin qusic ];
|
|
platforms = platforms.all;
|
|
mainProgram = "dmenu";
|
|
};
|
|
}
|