rofi-rbw: 1.1.0 -> 1.2.0

Co-authored-by: Bruno BELANYI <bruno@belanyi.fr>
Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>

+55 -5
+43 -4
pkgs/applications/misc/rofi-rbw/default.nix
··· 1 - { lib, buildPythonApplication, fetchFromGitHub, configargparse, setuptools, poetry-core, rbw }: 1 + { lib 2 + , buildPythonApplication 3 + , fetchFromGitHub 4 + , configargparse 5 + , setuptools 6 + , poetry-core 7 + , rbw 8 + 9 + , waylandSupport ? false 10 + , wl-clipboard 11 + , wtype 12 + 13 + , x11Support ? false 14 + , xclip 15 + , xdotool 16 + }: 2 17 3 18 buildPythonApplication rec { 4 19 pname = "rofi-rbw"; 5 - version = "1.1.0"; 20 + version = "1.2.0"; 6 21 format = "pyproject"; 7 22 8 23 src = fetchFromGitHub { 9 24 owner = "fdw"; 10 25 repo = "rofi-rbw"; 11 26 rev = "refs/tags/${version}"; 12 - hash = "sha256-5K6tofC1bIxxNOQ0jk6NbVoaGGyQImYiUZAaAmkwiTA="; 27 + hash = "sha256-6ZM+qJvVny/h5W/+7JqD/CCf9eayExvZfC/z9rHssVU="; 13 28 }; 14 29 15 30 nativeBuildInputs = [ ··· 17 32 poetry-core 18 33 ]; 19 34 35 + buildInputs = [ 36 + rbw 37 + ] ++ lib.optionals waylandSupport [ 38 + wl-clipboard 39 + wtype 40 + ] ++ lib.optionals x11Support [ 41 + xclip 42 + xdotool 43 + ]; 44 + 20 45 propagatedBuildInputs = [ configargparse ]; 21 46 22 47 pythonImportsCheck = [ "rofi_rbw" ]; 23 48 49 + wrapper_paths = [ 50 + rbw 51 + ] ++ lib.optionals waylandSupport [ 52 + wl-clipboard 53 + wtype 54 + ] ++ lib.optionals x11Support [ 55 + xclip 56 + xdotool 57 + ]; 58 + 59 + wrapper_flags = 60 + lib.optionalString waylandSupport "--typer wtype --clipboarder wl-copy" 61 + + lib.optionalString x11Support "--typer xdotool --clipboarder xclip"; 62 + 24 63 preFixup = '' 25 - makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ rbw ]}) 64 + makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath wrapper_paths} --add-flags "${wrapper_flags}") 26 65 ''; 27 66 28 67 meta = with lib; {
+12 -1
pkgs/top-level/all-packages.nix
··· 33783 33783 33784 33784 rofi-pulse-select = callPackage ../applications/audio/rofi-pulse-select { }; 33785 33785 33786 - rofi-rbw = python3Packages.callPackage ../applications/misc/rofi-rbw { }; 33786 + rofi-rbw = python3Packages.callPackage ../applications/misc/rofi-rbw { 33787 + waylandSupport = false; 33788 + x11Support = false; 33789 + }; 33790 + 33791 + rofi-rbw-wayland = python3Packages.callPackage ../applications/misc/rofi-rbw { 33792 + waylandSupport = true; 33793 + }; 33794 + 33795 + rofi-rbw-x11 = python3Packages.callPackage ../applications/misc/rofi-rbw { 33796 + x11Support = true; 33797 + }; 33787 33798 33788 33799 rofi-screenshot = callPackage ../applications/misc/rofi-screenshot { }; 33789 33800