2016-01-29 17:46:00 +00:00
|
|
|
{ stdenv, fetchurl, libX11, libXinerama, libXft, zlib, patches ? null }:
|
2010-03-05 21:42:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-06 18:29:45 +00:00
|
|
|
name = "dmenu-4.9";
|
2008-08-06 21:39:01 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-04-11 14:09:51 +01:00
|
|
|
url = "https://dl.suckless.org/tools/${name}.tar.gz";
|
2019-02-06 18:29:45 +00:00
|
|
|
sha256 = "0ia9nqr83bv6x247q30bal0v42chcj9qcjgv59xs6xj46m7iz5xk";
|
2012-11-07 15:03:37 +00:00
|
|
|
};
|
|
|
|
|
2015-11-10 08:56:10 +00:00
|
|
|
buildInputs = [ libX11 libXinerama zlib libXft ];
|
2008-08-06 21:39:01 +01:00
|
|
|
|
2016-01-29 17:46:00 +00:00
|
|
|
inherit patches;
|
|
|
|
|
2014-04-22 06:22:00 +01:00
|
|
|
postPatch = ''
|
2016-08-14 12:38:25 +01: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 06:22:00 +01:00
|
|
|
'';
|
|
|
|
|
2015-11-10 08:56:10 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk
|
|
|
|
'';
|
2008-08-06 21:39:01 +01:00
|
|
|
|
2015-11-10 08:56:10 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A generic, highly customizable, and efficient menu for the X Window System";
|
2018-04-11 14:09:51 +01:00
|
|
|
homepage = https://tools.suckless.org/dmenu;
|
2015-11-10 08:56:10 +00:00
|
|
|
license = licenses.mit;
|
2018-07-22 20:50:19 +01:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2015-11-10 08:56:10 +00:00
|
|
|
platforms = platforms.all;
|
2008-08-06 21:39:01 +01:00
|
|
|
};
|
|
|
|
}
|