dmenu2: new package

This commit is contained in:
Charles Strahan 2014-10-24 00:10:01 +02:00
parent a5b69c0a02
commit 28fab5baf3
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{stdenv, fetchhg, libX11, libXinerama, libXft, zlib}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "dmenu2";
src = fetchhg {
url = "https://bitbucket.org/melek/dmenu2";
rev = "36cb94a16edf928bdaaa636123392517ed469be0";
sha256 = "1b17z5ypg6ij7zz3ncp3irc87raccna10y4w490c872a99lp23lv";
};
buildInputs = [ libX11 libXinerama zlib libXft ];
postPatch = ''
sed -ri -e 's!\<(dmenu|stest)\>!'"$out/bin"'/&!g' dmenu_run
'';
preConfigure = [ ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'' ];
meta = {
description = "A patched fork of the original dmenu - an efficient dynamic menu for X";
homepage = https://bitbucket.org/melek/dmenu2;
license = stdenv.lib.licenses.mit;
maintainers = with maintainers; [ cstrahan ];
platforms = with platforms; all;
};
}

View File

@ -8970,6 +8970,8 @@ let
enableXft = config.dmenu.enableXft or false;
};
dmenu2 = callPackage ../applications/misc/dmenu2 { };
dmtx = dmtx-utils;
dmtx-utils = callPackage (import ../tools/graphics/dmtx-utils) {