2021-09-02 21:06:13 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2021-12-11 00:40:11 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-09-02 21:06:13 +01:00
|
|
|
, pkg-config
|
|
|
|
, libxkbcommon
|
|
|
|
, pango
|
|
|
|
, which
|
|
|
|
, git
|
|
|
|
, cairo
|
|
|
|
, libxcb
|
|
|
|
, xcbutil
|
|
|
|
, xcbutilwm
|
|
|
|
, xcbutilxrm
|
|
|
|
, xcb-util-cursor
|
|
|
|
, libstartup_notification
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, librsvg
|
|
|
|
, check
|
2022-01-27 02:52:39 +00:00
|
|
|
, glib
|
|
|
|
, buildPackages
|
2015-02-05 00:03:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-08 15:22:13 +01:00
|
|
|
pname = "rofi-unwrapped";
|
2022-08-19 22:17:38 +01:00
|
|
|
version = "1.7.5";
|
2015-02-05 00:03:09 +00:00
|
|
|
|
2021-09-02 21:06:13 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "davatorium";
|
|
|
|
repo = "rofi";
|
|
|
|
rev = version;
|
|
|
|
fetchSubmodules = true;
|
2022-08-19 22:17:38 +01:00
|
|
|
sha256 = "sha256-3XFusKeckagEPfbLtt1xAVTEfn1Qebdi/Iq1AYbHCR4=";
|
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
|
|
|
|
'';
|
|
|
|
|
2022-01-27 02:52:39 +00:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc pkg-config glib ];
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config flex bison ];
|
2021-09-02 21:06:13 +01:00
|
|
|
buildInputs = [
|
|
|
|
libxkbcommon
|
|
|
|
pango
|
|
|
|
cairo
|
|
|
|
git
|
|
|
|
librsvg
|
|
|
|
check
|
|
|
|
libstartup_notification
|
|
|
|
libxcb
|
|
|
|
xcbutil
|
|
|
|
xcbutilwm
|
|
|
|
xcbutilxrm
|
|
|
|
xcb-util-cursor
|
|
|
|
which
|
2016-08-13 21:30:07 +01:00
|
|
|
];
|
2019-07-08 15:22:13 +01:00
|
|
|
|
2018-03-11 17:24:08 +00:00
|
|
|
doCheck = false;
|
2015-02-05 00:03:09 +00:00
|
|
|
|
2019-07-08 15:22:13 +01:00
|
|
|
meta = with lib; {
|
2016-05-15 05:15:26 +01:00
|
|
|
description = "Window switcher, run dialog and dmenu replacement";
|
2019-07-08 15:22:13 +01:00
|
|
|
homepage = "https://github.com/davatorium/rofi";
|
2016-05-15 05:15:26 +01:00
|
|
|
license = licenses.mit;
|
2021-09-02 21:06:13 +01:00
|
|
|
maintainers = with maintainers; [ bew ];
|
2018-11-25 20:52:27 +00:00
|
|
|
platforms = with platforms; linux;
|
2015-02-05 00:03:09 +00:00
|
|
|
};
|
|
|
|
}
|