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