@@ -0,0 +1,49 @@
1+{ stdenv, python36Packages, fetchFromGitHub, pywal, feh, libxslt, imagemagick,
2+ gobjectIntrospection, gtk3, wrapGAppsHook, gnome3 }:
3+
4+python36Packages.buildPythonApplication rec {
5+ pname = "wpgtk";
6+ version = "5.7.4";
7+
8+ src = fetchFromGitHub {
9+ owner = "deviantfero";
10+ repo = "wpgtk";
11+ rev = "${version}";
12+ sha256 = "0c0kmc18lbr7nk3hh44hai9z06lfsgwxnjdv02hpjwrxg40zh726";
13+ };
14+
15+ pythonPath = [
16+ python36Packages.pygobject3
17+ python36Packages.pillow
18+ pywal
19+ imagemagick
20+ ];
21+
22+ buildInputs = [
23+ wrapGAppsHook
24+ gtk3
25+ gobjectIntrospection
26+ gnome3.adwaita-icon-theme
27+ libxslt
28+ ];
29+
30+ # The $HOME variable must be set to build the package. A "permission denied" error will occur otherwise
31+ preBuild = ''
32+ export HOME=$(pwd)
33+ '';
34+
35+ meta = with stdenv.lib; {
36+ description = "Template based wallpaper/colorscheme generator and manager";
37+ longDescription = ''
38+ In short, wpgtk is a colorscheme/wallpaper manager with a template system attached which lets you create templates from any textfile and will replace keywords on it on the fly, allowing for great styling and theming possibilities.
39+
40+ wpgtk uses pywal as its colorscheme generator, but builds upon it with a UI and other features, such as the abilty to mix and edit the colorschemes generated and save them with their respective wallpapers, having light and dark themes, hackable and fast GTK+ theme made specifically for wpgtk and custom keywords and values to replace in templates.
41+
42+ INFO: To work properly, this tool needs "programs.dconf.enable = true" on nixos or dconf installed. A reboot may be required after installing dconf.
43+ '';
44+ homepage = https://github.com/deviantfero/wpgtk;
45+ license = licenses.gpl2;
46+ platforms = platforms.linux;
47+ maintainers = [ maintainers.melkor333 ];
48+ };
49+}