mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
86 lines
1.5 KiB
Nix
86 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonApplication,
|
|
fetchFromGitHub,
|
|
configargparse,
|
|
setuptools,
|
|
poetry-core,
|
|
rbw,
|
|
|
|
waylandSupport ? false,
|
|
wl-clipboard,
|
|
wtype,
|
|
|
|
x11Support ? false,
|
|
xclip,
|
|
xdotool,
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "rofi-rbw";
|
|
version = "1.4.2";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fdw";
|
|
repo = "rofi-rbw";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-wUb89GkNB2lEfb42hMvcxpbjc1O+wx8AkFjq7aJwAko=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
poetry-core
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|