diff options
author | Charles Strahan <charles.c.strahan@gmail.com> | 2014-10-24 00:10:01 +0200 |
---|---|---|
committer | Charles Strahan <charles.c.strahan@gmail.com> | 2014-10-24 02:27:53 +0200 |
commit | 28fab5baf3435907eac1ef4a49304d12cd64f350 (patch) | |
tree | 494607b5c9380ea69e353861d0e16f33c62a487c | |
parent | a5b69c0a02450a1009b717c6f989a5c2700f40bd (diff) |
dmenu2: new package
-rw-r--r-- | pkgs/applications/misc/dmenu2/default.nix | 29 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/misc/dmenu2/default.nix b/pkgs/applications/misc/dmenu2/default.nix new file mode 100644 index 000000000000..1637586eb477 --- /dev/null +++ b/pkgs/applications/misc/dmenu2/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7a8c2951884a..fc5ef6913a39 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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) { |