4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
51 lines
1.8 KiB
Nix
51 lines
1.8 KiB
Nix
{ lib, stdenv, python3Packages, fetchFromGitHub, libxslt,
|
|
gobject-introspection, gtk3, wrapGAppsHook, gnome3 }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "wpgtk";
|
|
version = "6.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deviantfero";
|
|
repo = "wpgtk";
|
|
rev = version;
|
|
sha256 = "1jv28ygsd6ifjb096w3pm50za6wi62y45ycbizwhv7x56lr6zx1v";
|
|
};
|
|
|
|
buildInputs = [
|
|
wrapGAppsHook
|
|
gtk3
|
|
gobject-introspection
|
|
gnome3.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.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.melkor333 ];
|
|
};
|
|
}
|