2016-01-29 20:46:00 +03:00
|
|
|
{ stdenv, fetchurl, libX11, libXinerama, libXft, zlib, patches ? null }:
|
2010-03-06 00:42:24 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-05-29 10:23:15 +03:00
|
|
|
name = "dmenu-4.7";
|
2008-08-07 00:39:01 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-03-06 00:42:24 +03:00
|
|
|
url = "http://dl.suckless.org/tools/${name}.tar.gz";
|
2017-05-29 10:23:15 +03:00
|
|
|
sha256 = "1fgph549i0yw62x02jhfc8qmqk2rnzcnm46bxq6jig1cvkw3amm7";
|
2012-11-07 19:03:37 +04:00
|
|
|
};
|
|
|
|
|
2015-11-10 11:56:10 +03:00
|
|
|
buildInputs = [ libX11 libXinerama zlib libXft ];
|
2008-08-07 00:39:01 +04:00
|
|
|
|
2016-01-29 20:46:00 +03:00
|
|
|
inherit patches;
|
|
|
|
|
2014-04-22 09:22:00 +04:00
|
|
|
postPatch = ''
|
2016-08-14 14:38:25 +03:00
|
|
|
sed -ri -e 's!\<(dmenu|dmenu_path|stest)\>!'"$out/bin"'/&!g' dmenu_run
|
|
|
|
sed -ri -e 's!\<stest\>!'"$out/bin"'/&!g' dmenu_path
|
2014-04-22 09:22:00 +04:00
|
|
|
'';
|
|
|
|
|
2015-11-10 11:56:10 +03:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk
|
|
|
|
'';
|
2008-08-07 00:39:01 +04:00
|
|
|
|
2015-11-10 11:56:10 +03:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A generic, highly customizable, and efficient menu for the X Window System";
|
2009-03-15 23:09:50 +03:00
|
|
|
homepage = http://tools.suckless.org/dmenu;
|
2015-11-10 11:56:10 +03:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ viric pSub ];
|
|
|
|
platforms = platforms.all;
|
2008-08-07 00:39:01 +04:00
|
|
|
};
|
|
|
|
}
|