2012-11-07 19:03:37 +04:00
|
|
|
{stdenv, fetchurl, libX11, libXinerama, enableXft, libXft, zlib}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2010-03-06 00:42:24 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-07-10 14:38:41 +04:00
|
|
|
name = "dmenu-4.5";
|
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";
|
2012-07-10 14:38:41 +04:00
|
|
|
sha256 = "0l58jpxrr80fmyw5pgw5alm5qry49aw6y049745wl991v2cdcb08";
|
2008-08-07 00:39:01 +04:00
|
|
|
};
|
|
|
|
|
2012-11-07 19:03:37 +04:00
|
|
|
xftPatch = fetchurl {
|
|
|
|
url = "http://tools.suckless.org/dmenu/patches/${name}-xft.diff";
|
|
|
|
sha256 = "efb4095d65e5e86f9dde97294732174409c24f319bdd4824cc22fa1404972b4f";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libX11 libXinerama ] ++ optionals enableXft [zlib libXft];
|
|
|
|
|
|
|
|
patches = optional enableXft xftPatch;
|
2008-08-07 00:39:01 +04:00
|
|
|
|
|
|
|
preConfigure = [ ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'' ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
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;
|
2008-08-07 00:39:01 +04:00
|
|
|
license = "MIT";
|
2010-03-06 00:42:24 +03:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; all;
|
2008-08-07 00:39:01 +04:00
|
|
|
};
|
|
|
|
}
|
2012-07-10 14:38:41 +04:00
|
|
|
|