mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
56 lines
1.8 KiB
Nix
56 lines
1.8 KiB
Nix
{ lib, python3Packages, fetchFromGitHub, libxslt,
|
|
gobject-introspection, gtk3, wrapGAppsHook3, adwaita-icon-theme }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "wpgtk";
|
|
version = "6.5.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deviantfero";
|
|
repo = "wpgtk";
|
|
rev = version;
|
|
sha256 = "sha256-NlJG9d078TW1jcnVrpBORIIwDUGIAGWZoDbXp9/qRr4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
wrapGAppsHook3
|
|
gtk3
|
|
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 = with maintainers; [ melkor333 cafkafk ];
|
|
mainProgram = "wpg";
|
|
};
|
|
}
|