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