2019-12-22 18:37:08 -08:00
|
|
|
{ stdenv, lib, fetchurl
|
2019-07-08 07:22:13 -07:00
|
|
|
, autoreconfHook, pkgconfig, libxkbcommon, pango, which, git
|
2018-07-20 17:44:44 -07:00
|
|
|
, cairo, libxcb, xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification
|
2017-10-14 13:08:19 -07:00
|
|
|
, bison, flex, librsvg, check
|
2015-02-04 16:03:09 -08:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-08 07:22:13 -07:00
|
|
|
pname = "rofi-unwrapped";
|
|
|
|
version = "1.5.4";
|
2015-02-04 16:03:09 -08:00
|
|
|
|
2015-06-18 15:10:01 -07:00
|
|
|
src = fetchurl {
|
2019-07-08 07:22:13 -07:00
|
|
|
url = "https://github.com/davatorium/rofi/releases/download/${version}/rofi-${version}.tar.gz";
|
|
|
|
sha256 = "1g1170zmh5v7slnm1sm2d08jgz6icikf8rm17apm1bjzzyw1lhk7";
|
2015-02-04 16:03:09 -08:00
|
|
|
};
|
|
|
|
|
2016-04-24 08:55:20 -07:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs "script"
|
|
|
|
# root not present in build /etc/passwd
|
|
|
|
sed -i 's/~root/~nobody/g' test/helper-expand.c
|
|
|
|
'';
|
|
|
|
|
2019-12-22 18:37:08 -08:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2017-10-14 13:08:19 -07:00
|
|
|
buildInputs = [ libxkbcommon pango cairo git bison flex librsvg check
|
2016-12-31 06:22:22 -08:00
|
|
|
libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm which
|
2016-08-13 13:30:07 -07:00
|
|
|
];
|
2019-07-08 07:22:13 -07:00
|
|
|
|
2018-03-11 10:24:08 -07:00
|
|
|
doCheck = false;
|
2015-02-04 16:03:09 -08:00
|
|
|
|
2019-07-08 07:22:13 -07:00
|
|
|
meta = with lib; {
|
2016-05-14 21:15:26 -07:00
|
|
|
description = "Window switcher, run dialog and dmenu replacement";
|
2019-07-08 07:22:13 -07:00
|
|
|
homepage = "https://github.com/davatorium/rofi";
|
2016-05-14 21:15:26 -07:00
|
|
|
license = licenses.mit;
|
2019-12-26 06:13:48 -08:00
|
|
|
maintainers = with maintainers; [ mbakke ];
|
2018-11-25 12:52:27 -08:00
|
|
|
platforms = with platforms; linux;
|
2015-02-04 16:03:09 -08:00
|
|
|
};
|
|
|
|
}
|