Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

82 lines
1.4 KiB
Nix

{
lib,
buildPythonApplication,
fetchFromGitHub,
configargparse,
hatchling,
rbw,
waylandSupport ? false,
wl-clipboard,
wtype,
x11Support ? false,
xclip,
xdotool,
}:
buildPythonApplication rec {
pname = "rofi-rbw";
version = "1.5.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "fdw";
repo = "rofi-rbw";
tag = version;
hash = "sha256-Qdbz3UjWMCuJUzR6UMt/apt+OjMAr2U7uMtv9wxEZKE=";
};
nativeBuildInputs = [
hatchling
];
buildInputs = [
rbw
]
++ lib.optionals waylandSupport [
wl-clipboard
wtype
]
++ lib.optionals x11Support [
xclip
xdotool
];
propagatedBuildInputs = [ configargparse ];
pythonImportsCheck = [ "rofi_rbw" ];
wrapper_paths = [
rbw
]
++ lib.optionals waylandSupport [
wl-clipboard
wtype
]
++ lib.optionals x11Support [
xclip
xdotool
];
wrapper_flags =
lib.optionalString waylandSupport "--typer wtype --clipboarder wl-copy"
+ lib.optionalString x11Support "--typer xdotool --clipboarder xclip";
preFixup = ''
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath wrapper_paths} --add-flags "${wrapper_flags}")
'';
meta = with lib; {
description = "Rofi frontend for Bitwarden";
homepage = "https://github.com/fdw/rofi-rbw";
license = licenses.mit;
maintainers = with maintainers; [
equirosa
dit7ya
];
platforms = platforms.linux;
mainProgram = "rofi-rbw";
};
}