5 , gobject-introspection
16 , imagemagickSupport ? true
18 , appindicatorSupport ? true
19 , libayatana-appindicator
22 python3.pkgs.buildPythonApplication rec {
26 src = fetchFromGitHub {
27 owner = "varietywalls";
29 rev = "refs/tags/${version}";
30 hash = "sha256-Uln0uoaEZgV9FN3HEBTeFOD7d6RkAQLgQZw7bcgu26A=";
46 ++ lib.optional appindicatorSupport libayatana-appindicator;
48 propagatedBuildInputs = with python3.pkgs; [
61 ++ lib.optional fehSupport feh
62 ++ lib.optional imagemagickSupport imagemagick;
66 # Prevent double wrapping, let the Python wrapper use the args in preFixup.
70 makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
74 substituteInPlace variety_lib/varietyconfig.py \
75 --replace "__variety_data_directory__ = \"../data\"" \
76 "__variety_data_directory__ = \"$out/share/variety\""
77 substituteInPlace variety/VarietyWindow.py \
78 --replace '[script,' '["${runtimeShell}", script,' \
79 --replace 'check_output(script)' 'check_output(["${runtimeShell}", script])'
83 homepage = "https://github.com/varietywalls/variety";
84 description = "A wallpaper manager for Linux systems";
86 Variety is a wallpaper manager for Linux systems. It supports numerous
87 desktops and wallpaper sources, including local files and online services:
88 Flickr, Wallhaven, Unsplash, and more.
90 Where supported, Variety sits as a tray icon to allow easy pausing and
91 resuming. Otherwise, its desktop entry menu provides a similar set of
94 Variety also includes a range of image effects, such as oil painting and
95 blur, as well as options to layer quotes and a clock onto the background.
97 license = licenses.gpl3Plus;
98 maintainers = with maintainers; [ p3psi AndersonTorres zfnmxt ];