nixpkgs/pkgs/applications/misc/variety/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
2.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
2019-10-04 10:10:22 +00:00
, gexiv2
, gobject-introspection
, gtk3
2019-10-04 10:10:22 +00:00
, hicolor-icon-theme
, intltool
, libnotify
2019-10-04 10:10:22 +00:00
, librsvg
, python3
, runtimeShell
2020-12-29 01:14:00 +00:00
, wrapGAppsHook
, fehSupport ? false, feh
, imagemagickSupport ? true, imagemagick
2019-10-04 10:10:22 +00:00
}:
python3.pkgs.buildPythonApplication rec {
2019-10-04 10:10:22 +00:00
pname = "variety";
2022-05-20 04:55:16 +00:00
version = "0.8.7";
2019-10-04 10:10:22 +00:00
src = fetchFromGitHub {
owner = "varietywalls";
repo = "variety";
2020-12-29 01:14:00 +00:00
rev = version;
2022-05-20 04:55:16 +00:00
hash = "sha256-OFQiZe8G5v4F8HUJPeEM3ggVWHaALT1txy/aymHZ+jc=";
2019-10-04 10:10:22 +00:00
};
nativeBuildInputs = [
intltool
wrapGAppsHook
];
2019-10-04 10:10:22 +00:00
propagatedBuildInputs = [
gexiv2
gobject-introspection
gtk3
hicolor-icon-theme
libnotify
librsvg
]
++ (with python3.pkgs; [
beautifulsoup4
configobj
dbus-python
distutils_extra
httplib2
lxml
pillow
pycairo
pygobject3
requests
setuptools
])
++ lib.optional fehSupport feh
++ lib.optional imagemagickSupport imagemagick;
2019-10-04 10:10:22 +00:00
doCheck = false;
postInstall = ''
wrapProgram $out/bin/variety --suffix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}/
'';
2021-06-04 12:16:19 +00:00
2019-10-04 10:10:22 +00:00
prePatch = ''
substituteInPlace variety_lib/varietyconfig.py \
--replace "__variety_data_directory__ = \"../data\"" \
"__variety_data_directory__ = \"$out/share/variety\""
2019-10-04 10:10:22 +00:00
substituteInPlace data/scripts/set_wallpaper \
--replace /bin/bash ${runtimeShell}
2019-10-04 10:10:22 +00:00
substituteInPlace data/scripts/get_wallpaper \
--replace /bin/bash ${runtimeShell}
2019-10-04 10:10:22 +00:00
'';
meta = with lib; {
homepage = "https://github.com/varietywalls/variety";
2020-12-29 01:14:00 +00:00
description = "A wallpaper manager for Linux systems";
longDescription = ''
Variety is a wallpaper manager for Linux systems. It supports numerous
desktops and wallpaper sources, including local files and online services:
Flickr, Wallhaven, Unsplash, and more.
Where supported, Variety sits as a tray icon to allow easy pausing and
resuming. Otherwise, its desktop entry menu provides a similar set of
options.
Variety also includes a range of image effects, such as oil painting and
blur, as well as options to layer quotes and a clock onto the background.
'';
license = licenses.gpl3Plus;
2021-06-04 12:16:19 +00:00
maintainers = with maintainers; [ p3psi AndersonTorres zfnmxt ];
2019-10-04 10:10:22 +00:00
};
}