depot/third_party/nixpkgs/pkgs/tools/X11/wpgtk/default.nix
Default email 0eeabdeb66 Project import generated by Copybara.
GitOrigin-RevId: c07b471b52be8fbc49a7dc194e9b37a6e19ee04d
2022-01-24 21:21:06 -06:00

51 lines
1.8 KiB
Nix

{ lib, python3Packages, fetchFromGitHub, libxslt,
gobject-introspection, gtk3, wrapGAppsHook, gnome }:
python3Packages.buildPythonApplication rec {
pname = "wpgtk";
version = "6.5.0";
src = fetchFromGitHub {
owner = "deviantfero";
repo = "wpgtk";
rev = version;
sha256 = "0gv607jrdfbmadjyy3pbrj5ksh1dmaw5hz7l8my2z7sh0ifds0n2";
};
buildInputs = [
wrapGAppsHook
gtk3
gobject-introspection
gnome.adwaita-icon-theme
libxslt
];
propagatedBuildInputs = with python3Packages; [
pygobject3
pillow
pywal
];
# The $HOME variable must be set to build the package. A "permission denied" error will occur otherwise
preBuild = ''
export HOME=$(pwd)
'';
# No test exist
doCheck = false;
meta = with 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.gpl2Only;
platforms = platforms.linux;
maintainers = [ maintainers.melkor333 ];
};
}