1 { lib, stdenv, fetchurl, libX11, libXinerama, libXft, zlib, patches ? null
2 # update script dependencies
6 stdenv.mkDerivation rec {
11 url = "https://dl.suckless.org/tools/dmenu-${version}.tar.gz";
12 sha256 = "sha256-Go9T5v0tdJg57IcMXiez4U2lw+6sv8uUXRWeHVQzeV8=";
15 buildInputs = [ libX11 libXinerama zlib libXft ];
20 sed -ri -e 's!\<(dmenu|dmenu_path|stest)\>!'"$out/bin"'/&!g' dmenu_run
21 sed -ri -e 's!\<stest\>!'"$out/bin"'/&!g' dmenu_path
25 sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk
28 makeFlags = [ "CC:=$(CC)" ];
30 passthru.updateScript = gitUpdater {
31 url = "git://git.suckless.org/dmenu";
35 description = "A generic, highly customizable, and efficient menu for the X Window System";
36 homepage = "https://tools.suckless.org/dmenu";
37 license = licenses.mit;
38 maintainers = with maintainers; [ pSub globin qusic ];
39 platforms = platforms.all;
40 mainProgram = "dmenu";