2016-05-15 04:15:26 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libX11, libxkbcommon, pango
|
2016-06-19 15:33:30 +00:00
|
|
|
, cairo, glib, libxcb, xcbutil, xcbutilwm, libstartup_notification
|
2016-05-15 04:15:26 +00:00
|
|
|
, i3Support ? false, i3
|
2015-02-05 00:03:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-19 15:33:30 +00:00
|
|
|
version = "1.1.0";
|
2015-02-05 00:03:09 +00:00
|
|
|
name = "rofi-${version}";
|
|
|
|
|
2015-06-18 22:10:01 +00:00
|
|
|
src = fetchurl {
|
2016-04-24 15:55:20 +00:00
|
|
|
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.xz";
|
2016-06-19 15:33:30 +00:00
|
|
|
sha256 = "1l8vl0mh7i0b1ycifqpg6392f5i4qxlv003m126skfk6fnlfq8hn";
|
2015-02-05 00:03:09 +00:00
|
|
|
};
|
|
|
|
|
2016-04-24 15:55:20 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs "script"
|
|
|
|
# root not present in build /etc/passwd
|
|
|
|
sed -i 's/~root/~nobody/g' test/helper-expand.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ autoreconfHook pkgconfig libX11 libxkbcommon pango
|
2016-06-19 15:33:30 +00:00
|
|
|
cairo libstartup_notification libxcb xcbutil xcbutilwm
|
2016-05-15 04:15:26 +00:00
|
|
|
] ++ stdenv.lib.optional i3Support i3;
|
2015-02-05 00:03:09 +00:00
|
|
|
|
2016-05-15 04:15:26 +00: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 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2015-02-05 00:03:09 +00:00
|
|
|
};
|
|
|
|
}
|