2024-04-26 20:24:03 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub, gtk-layer-shell, gtk3, gobject-introspection, wrapGAppsHook3, wlr-randr }:
|
2021-07-14 22:33:10 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "nwg-wrapper";
|
2022-10-24 18:59:19 +00:00
|
|
|
version = "0.1.3";
|
2021-07-14 22:33:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nwg-piotr";
|
|
|
|
repo = pname;
|
2022-10-24 18:59:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-GKDAdjO67aedCEFHKDukQ+oPMomTPwFE/CvJu112fus=";
|
2021-07-14 22:33:10 +00:00
|
|
|
};
|
|
|
|
|
2024-04-26 20:24:03 +00:00
|
|
|
nativeBuildInputs = [ gobject-introspection wrapGAppsHook3 ];
|
2021-07-14 22:33:10 +00:00
|
|
|
|
|
|
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "nwg-wrapper";
|
2021-07-14 22:33:10 +00:00
|
|
|
homepage = "https://github.com/nwg-piotr/nwg-wrapper/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ artturin ];
|
|
|
|
};
|
|
|
|
}
|