2016-12-31 14:22:22 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libxkbcommon, pango, which, git
|
2016-08-13 21:30:07 +01:00
|
|
|
, cairo, glib, libxcb, xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification
|
2017-10-14 21:08:19 +01:00
|
|
|
, bison, flex, librsvg, check
|
2015-02-05 00:03:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-20 22:38:33 +01:00
|
|
|
version = "1.4.2";
|
2015-02-05 00:03:09 +00:00
|
|
|
name = "rofi-${version}";
|
|
|
|
|
2015-06-18 23:10:01 +01:00
|
|
|
src = fetchurl {
|
2017-01-10 20:42:37 +00:00
|
|
|
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.gz";
|
2017-10-20 22:38:33 +01:00
|
|
|
sha256 = "0ys7grazqz5hw3nx2393df54ykcd5gw0zn66kik5fvzijpg3qfcx";
|
2015-02-05 00:03:09 +00:00
|
|
|
};
|
|
|
|
|
2016-04-24 16:55:20 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs "script"
|
|
|
|
# root not present in build /etc/passwd
|
|
|
|
sed -i 's/~root/~nobody/g' test/helper-expand.c
|
|
|
|
'';
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2017-10-14 21:08:19 +01:00
|
|
|
buildInputs = [ libxkbcommon pango cairo git bison flex librsvg check
|
2016-12-31 14:22:22 +00:00
|
|
|
libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm which
|
2016-08-13 21:30:07 +01:00
|
|
|
];
|
|
|
|
doCheck = true;
|
2015-02-05 00:03:09 +00:00
|
|
|
|
2016-05-15 05:15:26 +01: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 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2015-02-05 00:03:09 +00:00
|
|
|
};
|
|
|
|
}
|