2022-03-01 22:19:03 +01:00
|
|
|
{pkgs, ...}:
|
2021-11-03 23:05:12 +01:00
|
|
|
with pkgs;
|
2022-03-01 22:19:03 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rofi-wayland-unwrapped";
|
|
|
|
version = "1.7.3";
|
2021-11-03 23:05:12 +01:00
|
|
|
|
2022-03-01 22:19:03 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lbonn";
|
|
|
|
repo = "rofi";
|
|
|
|
rev = "${version}+wayland1";
|
|
|
|
fetchSubmodules = true;
|
2022-04-11 09:57:19 +02:00
|
|
|
# sha256 = "1h6lh4lrkxzs6iy2rzn5g71dnz6qck4j8cxpgy1ja179vrnj1sf7";
|
|
|
|
sha256 = "qvIxWxiQj42VgScSsrF1Yf6ifgEbZes0flNbbwc3O8I=";
|
2022-03-01 22:19:03 +01:00
|
|
|
};
|
2021-11-03 23:05:12 +01:00
|
|
|
|
2022-03-01 22:19:03 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs "script"
|
|
|
|
# root not present in build /etc/passwd
|
|
|
|
sed -i 's/~root/~nobody/g' test/helper-expand.c
|
|
|
|
'';
|
2021-11-03 23:05:12 +01:00
|
|
|
|
2022-03-01 22:19:03 +01:00
|
|
|
nativeBuildInputs = [meson ninja pkgconfig];
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
libxkbcommon
|
|
|
|
pango
|
|
|
|
cairo
|
|
|
|
git
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
librsvg
|
|
|
|
check
|
|
|
|
libstartup_notification
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.xcbutil
|
|
|
|
xorg.xcbutilwm
|
|
|
|
xcb-util-cursor
|
|
|
|
xcbutilxrm
|
|
|
|
which
|
|
|
|
wayland-protocols
|
|
|
|
wayland
|
|
|
|
];
|
2021-11-03 23:05:12 +01:00
|
|
|
|
2022-03-01 22:19:03 +01:00
|
|
|
doCheck = false;
|
2021-11-03 23:05:12 +01:00
|
|
|
|
2022-03-01 22:19:03 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Window switcher, run dialog and dmenu replacement";
|
|
|
|
homepage = "https://github.com/davatorium/rofi";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [c0deaddict];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|