2023-08-09 20:08:28 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
2023-09-22 02:51:49 +00:00
|
|
|
, killall
|
2023-08-09 20:08:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "waypaper";
|
2024-01-21 18:46:19 +00:00
|
|
|
version = "2.1";
|
2023-08-09 20:08:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anufrievroman";
|
|
|
|
repo = "waypaper";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-01-21 18:46:19 +00:00
|
|
|
hash = "sha256-AIOrn5I0WX8S4iaK6mVEbdn1tQiED0JYA0GXDXJ6eNE=";
|
2023-08-09 20:08:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2023-09-22 02:51:49 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
python3.pkgs.pygobject3
|
2024-01-21 18:46:19 +00:00
|
|
|
python3.pkgs.platformdirs
|
|
|
|
python3.pkgs.importlib-metadata
|
|
|
|
python3.pkgs.pillow
|
2023-09-22 02:51:49 +00:00
|
|
|
killall
|
2023-08-09 20:08:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "waypaper";
|
2023-08-09 20:08:28 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|