2016-12-31 14:22:22 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libxkbcommon, pango, which, git
|
2018-07-21 00:44:44 +00:00
|
|
|
, cairo, libxcb, xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification
|
2017-10-14 20:08:19 +00:00
|
|
|
, bison, flex, librsvg, check
|
2015-02-05 00:03:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-30 23:34:04 +00:00
|
|
|
version = "1.5.1";
|
2018-03-11 01:37:59 +00:00
|
|
|
name = "rofi-unwrapped-${version}";
|
2015-02-05 00:03:09 +00:00
|
|
|
|
2015-06-18 22:10:01 +00:00
|
|
|
src = fetchurl {
|
2018-03-11 01:37:59 +00:00
|
|
|
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/rofi-${version}.tar.gz";
|
2018-03-30 23:34:04 +00:00
|
|
|
sha256 = "1dc33zf33z38jcxb0lxpyd31waalpf6d4cd9z5f9m5qphdk1g679";
|
2015-02-05 00:03:09 +00:00
|
|
|
};
|
|
|
|
|
2018-03-11 17:24:08 +00:00
|
|
|
# config.patch may be removed in the future - https://github.com/DaveDavenport/rofi/pull/781
|
2018-03-11 18:21:29 +00:00
|
|
|
patches = [ ./config.patch ];
|
2018-03-11 17:24:08 +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
|
|
|
|
'';
|
|
|
|
|
2018-03-11 17:24:08 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out"/bin/rofi-theme-selector \
|
|
|
|
--replace "%ROFIOUT%" "$out/share"
|
|
|
|
'';
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2017-10-14 20:08:19 +00: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 20:30:07 +00:00
|
|
|
];
|
2018-03-11 17:24:08 +00:00
|
|
|
doCheck = false;
|
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;
|
2018-03-11 01:37:59 +00:00
|
|
|
maintainers = with maintainers; [ mbakke garbas ma27 ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2015-02-05 00:03:09 +00:00
|
|
|
};
|
|
|
|
}
|