2025-02-11 17:45:17 +07:00

64 lines
1.5 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
gobject-introspection,
wrapGAppsHook3,
killall,
}:
python3.pkgs.buildPythonApplication rec {
pname = "waypaper";
version = "2.5";
pyproject = true;
src = fetchFromGitHub {
owner = "anufrievroman";
repo = "waypaper";
tag = version;
hash = "sha256-g1heJUBVJzRZXcNQCwRcqp6cTUaroKVpcTjG0KldlxU=";
};
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook3
];
build-system = [ python3.pkgs.setuptools ];
dependencies = [
python3.pkgs.pygobject3
python3.pkgs.platformdirs
python3.pkgs.pillow
python3.pkgs.imageio
python3.pkgs.imageio-ffmpeg
python3.pkgs.screeninfo
];
propagatedBuildInputs = [ killall ];
# has no tests
doCheck = false;
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = with lib; {
changelog = "https://github.com/anufrievroman/waypaper/releases/tag/${version}";
description = "GUI wallpaper setter for Wayland-based window managers";
mainProgram = "waypaper";
longDescription = ''
GUI wallpaper setter for Wayland-based window managers that works as a frontend for popular backends like swaybg and swww.
If wallpaper does not change, make sure that swaybg or swww is installed.
'';
homepage = "https://github.com/anufrievroman/waypaper";
license = licenses.gpl3Only;
maintainers = with maintainers; [ totalchaos ];
platforms = platforms.linux;
};
}