mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
ae54952c4e
strictDeps can now be enabled because I fixed gobject-introspection's hook just make sure that gobject-introspection is in nativeBuildInputs
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib, python3Packages, fetchFromGitHub, gtk-layer-shell, gtk3, gobject-introspection, wrapGAppsHook, wlr-randr }:
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "nwg-wrapper";
|
|
version = "0.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nwg-piotr";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-GKDAdjO67aedCEFHKDukQ+oPMomTPwFE/CvJu112fus=";
|
|
};
|
|
|
|
nativeBuildInputs = [ gobject-introspection wrapGAppsHook ];
|
|
|
|
buildInputs = [ gtk3 gtk-layer-shell ];
|
|
|
|
propagatedBuildInputs = with python3Packages; [ i3ipc pygobject3 ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=(
|
|
"''${gappsWrapperArgs[@]}"
|
|
--prefix PATH : "${lib.makeBinPath [ wlr-randr ]}"
|
|
)
|
|
'';
|
|
|
|
pythonImportsCheck = [ "nwg_wrapper" ];
|
|
|
|
meta = with lib; {
|
|
description = "Wrapper to display a script output or a text file content on the desktop in sway or other wlroots-based compositors";
|
|
homepage = "https://github.com/nwg-piotr/nwg-wrapper/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ artturin ];
|
|
};
|
|
}
|