2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, python3Packages, fetchFromGitHub, libxslt,
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection, gtk3, wrapGAppsHook, gnome3 }:
|
2018-10-12 14:18:44 +02:00
|
|
|
|
2018-12-26 12:01:20 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-10-12 14:18:44 +02:00
|
|
|
pname = "wpgtk";
|
2019-06-07 04:51:32 +02:00
|
|
|
version = "6.0.7";
|
2018-10-12 14:18:44 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deviantfero";
|
|
|
|
repo = "wpgtk";
|
2019-03-21 03:25:26 +01:00
|
|
|
rev = version;
|
2019-06-07 04:51:32 +02:00
|
|
|
sha256 = "14qk7kmi37ppxh2m69g7wb7w2wh62nbsy3z4ns7hsns3p21va7y3";
|
2018-10-12 14:18:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wrapGAppsHook
|
|
|
|
gtk3
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection
|
2018-10-12 14:18:44 +02:00
|
|
|
gnome3.adwaita-icon-theme
|
|
|
|
libxslt
|
|
|
|
];
|
|
|
|
|
2018-12-26 12:01:20 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pygobject3
|
|
|
|
pillow
|
|
|
|
pywal
|
|
|
|
];
|
|
|
|
|
2018-10-12 14:18:44 +02:00
|
|
|
# The $HOME variable must be set to build the package. A "permission denied" error will occur otherwise
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$(pwd)
|
|
|
|
'';
|
|
|
|
|
2018-12-26 12:01:20 +01:00
|
|
|
# No test exist
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-10-12 14:18:44 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Template based wallpaper/colorscheme generator and manager";
|
|
|
|
longDescription = ''
|
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
INFO: To work properly, this tool needs "programs.dconf.enable = true" on nixos or dconf installed. A reboot may be required after installing dconf.
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/deviantfero/wpgtk;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.melkor333 ];
|
|
|
|
};
|
|
|
|
}
|