Merge pull request #130242 from Artturin/add-nwg-wrapper

authored by

Sandro and committed by
GitHub
8551fe61 daa42d53

+43
+41
pkgs/applications/misc/nwg-wrapper/default.nix
··· 1 + { lib, python3Packages, fetchFromGitHub, gtk-layer-shell, gtk3, gobject-introspection, wrapGAppsHook, wlr-randr }: 2 + 3 + python3Packages.buildPythonPackage rec { 4 + pname = "nwg-wrapper"; 5 + version = "0.0.1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "nwg-piotr"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + sha256 = "1rpkcjr0chmgsfkan88lsi476bamg9a6y7h0x9zsh60a9rdf7dl8"; 12 + }; 13 + 14 + nativeBuildInputs = [ gobject-introspection wrapGAppsHook ]; 15 + 16 + buildInputs = [ gtk3 gtk-layer-shell ]; 17 + 18 + propagatedBuildInputs = with python3Packages; [ i3ipc pygobject3 ]; 19 + 20 + # ValueError: Namespace GtkLayerShell not available 21 + strictDeps = false; 22 + 23 + # No tests 24 + doCheck = false; 25 + 26 + preFixup = '' 27 + makeWrapperArgs+=( 28 + "''${gappsWrapperArgs[@]}" 29 + --prefix PATH : "${lib.makeBinPath [ wlr-randr ]}" 30 + ) 31 + ''; 32 + 33 + pythonImportsCheck = [ "nwg_wrapper" ]; 34 + 35 + meta = with lib; { 36 + description = "Wrapper to display a script output or a text file content on the desktop in sway or other wlroots-based compositors"; 37 + homepage = "https://github.com/nwg-piotr/nwg-wrapper/"; 38 + license = licenses.mit; 39 + maintainers = with maintainers; [ artturin ]; 40 + }; 41 + }
+2
pkgs/top-level/all-packages.nix
··· 25880 25880 25881 25881 nwg-panel = callPackage ../applications/misc/nwg-panel { }; 25882 25882 25883 + nwg-wrapper = callPackage ../applications/misc/nwg-wrapper { }; 25884 + 25883 25885 ocenaudio = callPackage ../applications/audio/ocenaudio { }; 25884 25886 25885 25887 onlyoffice-bin = callPackage ../applications/office/onlyoffice-bin { };