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