1 { lib, stdenv, fetchurl, libX11, libXinerama, libXft, zlib, patches ? null }:
3 stdenv.mkDerivation rec {
8 url = "https://dl.suckless.org/tools/dmenu-${version}.tar.gz";
9 sha256 = "sha256-1NTKd7WRQPJyJy21N+BbuRpZFPVoAmUtxX5hp3PUN5I=";
12 buildInputs = [ libX11 libXinerama zlib libXft ];
17 sed -ri -e 's!\<(dmenu|dmenu_path|stest)\>!'"$out/bin"'/&!g' dmenu_run
18 sed -ri -e 's!\<stest\>!'"$out/bin"'/&!g' dmenu_path
22 sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk
25 makeFlags = [ "CC:=$(CC)" ];
28 description = "A generic, highly customizable, and efficient menu for the X Window System";
29 homepage = "https://tools.suckless.org/dmenu";
30 license = licenses.mit;
31 maintainers = with maintainers; [ pSub globin ];
32 platforms = platforms.all;
33 mainProgram = "dmenu";