mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
, gobject-introspection
|
|
, wrapGAppsHook
|
|
, killall
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "waypaper";
|
|
version = "2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "anufrievroman";
|
|
repo = "waypaper";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-AIOrn5I0WX8S4iaK6mVEbdn1tQiED0JYA0GXDXJ6eNE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
wrapGAppsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
python3.pkgs.pygobject3
|
|
python3.pkgs.platformdirs
|
|
python3.pkgs.importlib-metadata
|
|
python3.pkgs.pillow
|
|
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;
|
|
};
|
|
}
|