summary refs log tree commit diff
diff options
context:
space:
mode:
authorzfnmxt <zfnmxt@zfnmxt.com>2019-10-04 12:10:22 +0200
committerzfnmxt <zfnmxt@zfnmxt.com>2019-10-04 13:48:37 +0200
commit441638eee86bacb61237a8f49301c50580131ce4 (patch)
treed1df80d4ce5a2938445fd80963fe4b9723e2059b
parent4af22ae959aa58d55fd4f1dd80e734d48f8a63c8 (diff)
downloadnixpkgs-441638eee86bacb61237a8f49301c50580131ce4.tar
nixpkgs-441638eee86bacb61237a8f49301c50580131ce4.tar.gz
nixpkgs-441638eee86bacb61237a8f49301c50580131ce4.tar.bz2
nixpkgs-441638eee86bacb61237a8f49301c50580131ce4.tar.lz
nixpkgs-441638eee86bacb61237a8f49301c50580131ce4.tar.xz
nixpkgs-441638eee86bacb61237a8f49301c50580131ce4.tar.zst
nixpkgs-441638eee86bacb61237a8f49301c50580131ce4.zip
variety: init at 0.7.2-96-g3afe3ab
-rw-r--r--pkgs/applications/misc/variety/default.nix73
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 75 insertions, 0 deletions
diff --git a/pkgs/applications/misc/variety/default.nix b/pkgs/applications/misc/variety/default.nix
new file mode 100644
index 00000000000..6d8da4a1007
--- /dev/null
+++ b/pkgs/applications/misc/variety/default.nix
@@ -0,0 +1,73 @@
+{
+  fehSupport ? false, feh
+, imagemagickSupport ? true, imagemagick
+, stdenv
+, lib
+, python37Packages
+, fetchFromGitHub
+, intltool
+, gtk3
+, gexiv2
+, libnotify
+, wrapGAppsHook
+, gobject-introspection
+, hicolor-icon-theme
+, librsvg
+}:
+
+with python37Packages;
+
+buildPythonApplication rec {
+  pname = "variety";
+  version = "0.7.2-96-g3afe3ab";
+
+  src = fetchFromGitHub {
+    owner = "varietywalls";
+    repo = "variety";
+    rev = "3afe3abf725e5db2aec0db575a17c9907ab20de1";
+    sha256 = "10vw0202dwrwi497nsbq077v4qd3qn5b8cmkfcsgbvvjwlz7ldm5";
+  };
+
+  nativeBuildInputs = [ intltool wrapGAppsHook ];
+
+  buildInputs = [ distutils_extra ];
+
+  doCheck = false;
+
+  prePatch = ''
+    substituteInPlace variety_lib/varietyconfig.py \
+      --replace "__variety_data_directory__ = \"../data\"" "__variety_data_directory__ = \"$out/share/variety\""
+    substituteInPlace data/scripts/set_wallpaper \
+      --replace /bin/bash ${stdenv.shell}
+    substituteInPlace data/scripts/get_wallpaper \
+      --replace /bin/bash ${stdenv.shell}
+  '';
+
+  propagatedBuildInputs =
+       [ gtk3
+         gexiv2
+         libnotify
+         beautifulsoup4
+         lxml
+         pycairo
+         pygobject3
+         configobj
+         pillow
+         setuptools
+         requests
+         httplib2
+         dbus-python
+         gobject-introspection
+         hicolor-icon-theme
+         librsvg
+       ]
+    ++ lib.optional fehSupport feh
+    ++ lib.optional imagemagickSupport imagemagick;
+
+  meta = with lib; {
+    description = "A wallpaper manager for Linux systems. It supports numerous desktops and wallpaper sources, including local files and online services: Flickr, Wallhaven, Unsplash, and more";
+    homepage = https://github.com/varietywalls/variety;
+    license = licenses.gpl3;
+    maintainers = [ maintainers.zfnmxt ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index fb906ed884a..0bac2c66086 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6719,6 +6719,8 @@ in
 
   vampire = callPackage ../applications/science/logic/vampire {};
 
+  variety = callPackage ../applications/misc/variety {};
+
   vdmfec = callPackage ../applications/backup/vdmfec {};
 
   vk-messenger = callPackage ../applications/networking/instant-messengers/vk-messenger {};