2022-04-27 00:21:19 +02:00
|
|
|
{ pkgs, ... }:
|
2021-11-03 23:05:12 +01:00
|
|
|
with pkgs;
|
2022-04-27 00:21:19 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rofi-wayland-unwrapped";
|
2023-09-15 15:43:28 +02:00
|
|
|
version = "1.7.5+wayland2";
|
2021-11-03 23:05:12 +01:00
|
|
|
|
2022-04-27 00:21:19 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lbonn";
|
|
|
|
repo = "rofi";
|
2023-09-15 15:43:28 +02:00
|
|
|
rev = version;
|
2022-04-27 00:21:19 +02:00
|
|
|
fetchSubmodules = true;
|
2022-09-28 08:11:25 +02:00
|
|
|
sha256 = "ddKLV7NvqgTQl5YlAEyBK0oalcJsLASK4z3qArQPUDQ=";
|
2022-04-27 00:21:19 +02:00
|
|
|
};
|
2021-11-03 23:05:12 +01:00
|
|
|
|
2022-04-27 00:21:19 +02: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-09-28 08:11:25 +02:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
2022-04-27 00:21:19 +02:00
|
|
|
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-04-27 00:21:19 +02:00
|
|
|
doCheck = false;
|
2021-11-03 23:05:12 +01:00
|
|
|
|
2022-04-27 00:21:19 +02: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;
|
|
|
|
};
|
|
|
|
}
|