2021-09-18 10:52:07 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2021-12-19 01:06:50 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-09-18 10:52:07 +00:00
|
|
|
, pkg-config
|
|
|
|
, libxkbcommon
|
|
|
|
, pango
|
|
|
|
, which
|
|
|
|
, git
|
|
|
|
, cairo
|
|
|
|
, libxcb
|
|
|
|
, xcbutil
|
|
|
|
, xcbutilwm
|
|
|
|
, xcbutilxrm
|
|
|
|
, xcb-util-cursor
|
|
|
|
, libstartup_notification
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, librsvg
|
|
|
|
, check
|
2022-03-05 16:20:37 +00:00
|
|
|
, glib
|
|
|
|
, buildPackages
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rofi-unwrapped";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "1.7.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "davatorium";
|
|
|
|
repo = "rofi";
|
|
|
|
rev = version;
|
|
|
|
fetchSubmodules = true;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-3XFusKeckagEPfbLtt1xAVTEfn1Qebdi/Iq1AYbHCR4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs "script"
|
|
|
|
# root not present in build /etc/passwd
|
|
|
|
sed -i 's/~root/~nobody/g' test/helper-expand.c
|
|
|
|
'';
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc pkg-config glib ];
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config flex bison ];
|
2021-09-18 10:52:07 +00:00
|
|
|
buildInputs = [
|
|
|
|
libxkbcommon
|
|
|
|
pango
|
|
|
|
cairo
|
|
|
|
git
|
|
|
|
librsvg
|
|
|
|
check
|
|
|
|
libstartup_notification
|
|
|
|
libxcb
|
|
|
|
xcbutil
|
|
|
|
xcbutilwm
|
|
|
|
xcbutilxrm
|
|
|
|
xcb-util-cursor
|
|
|
|
which
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Window switcher, run dialog and dmenu replacement";
|
|
|
|
homepage = "https://github.com/davatorium/rofi";
|
|
|
|
license = licenses.mit;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ bew ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux;
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "rofi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|