2016-12-31 15:22:22 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libxkbcommon, pango, which, git
|
2016-08-13 22:30:07 +02:00
|
|
|
, cairo, glib, libxcb, xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification
|
2015-02-05 01:03:09 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-01-10 21:42:37 +01:00
|
|
|
version = "1.3.1";
|
2015-02-05 01:03:09 +01:00
|
|
|
name = "rofi-${version}";
|
|
|
|
|
2015-06-19 00:10:01 +02:00
|
|
|
src = fetchurl {
|
2017-01-10 21:42:37 +01:00
|
|
|
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.gz";
|
|
|
|
sha256 = "09i3vd8k6zqphrm382fglsmxc4q6dg00xddzl96kakszgvdd4qfs";
|
2015-02-05 01:03:09 +01:00
|
|
|
};
|
|
|
|
|
2016-04-24 17:55:20 +02:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs "script"
|
|
|
|
# root not present in build /etc/passwd
|
|
|
|
sed -i 's/~root/~nobody/g' test/helper-expand.c
|
|
|
|
'';
|
|
|
|
|
2016-12-31 15:22:22 +01:00
|
|
|
buildInputs = [ autoreconfHook pkgconfig libxkbcommon pango cairo git
|
|
|
|
libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm which
|
2016-08-13 22:30:07 +02:00
|
|
|
];
|
|
|
|
doCheck = true;
|
2015-02-05 01:03:09 +01:00
|
|
|
|
2016-05-15 06:15:26 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Window switcher, run dialog and dmenu replacement";
|
|
|
|
homepage = https://davedavenport.github.io/rofi;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mbakke garbas ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; unix;
|
2015-02-05 01:03:09 +01:00
|
|
|
};
|
|
|
|
}
|