2015-10-24 01:32:20 +02:00
|
|
|
{stdenv, fetchurl #, libX11, libXinerama, enableXft, libXft, zlib
|
|
|
|
, swc, wld, wayland, libxkbcommon, pixman, fontconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dmenu-wayland-${version}";
|
2017-09-10 17:21:35 +02:00
|
|
|
version = "git-2017-04-07";
|
|
|
|
rev = "f385d9d18813071b4b4257bf8d4d572daeda0e70";
|
2015-10-24 01:32:20 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/michaelforney/dmenu/archive/${rev}.tar.gz";
|
2017-09-10 17:21:35 +02:00
|
|
|
sha256 = "0y1jvh2815c005ns0bsjxsmz82smw22n6jsfg2g03a1pacakp6ys";
|
2015-10-24 01:32:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ swc wld wayland libxkbcommon pixman fontconfig ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -ri -e 's!\<(dmenu|dmenu_path)\>!'"$out/bin"'/&!g' dmenu_run
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = [
|
2017-09-10 17:21:35 +02:00
|
|
|
''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g; s@/usr/share/swc@${swc}/share/swc@g" config.mk''
|
2015-10-24 01:32:20 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "A generic, highly customizable, and efficient menu for the X Window System";
|
2015-10-24 01:32:20 +02:00
|
|
|
homepage = http://tools.suckless.org/dmenu;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ ];
|
|
|
|
platforms = with stdenv.lib.platforms; all;
|
|
|
|
};
|
|
|
|
}
|