Files
nixpkgs/pkgs/by-name/pi/pigment/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.3 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
ninja,
meson,
pkg-config,
wrapGAppsHook4,
glib,
desktop-file-utils,
appstream-glib,
gobject-introspection,
gtk4,
libadwaita,
nix-update-script,
}:
let
version = "0.5.1";
in
python3Packages.buildPythonApplication {
pname = "pigment";
inherit version;
pyproject = false;
src = fetchFromGitHub {
owner = "Jeffser";
repo = "Pigment";
tag = version;
hash = "sha256-tWWDX1njnI1FOZhTUE1i+5pqZeLZFzHBrfoGFHCKnX0=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
glib
desktop-file-utils
appstream-glib
gobject-introspection
];
pythonPath = with python3Packages; [
pygobject3
colorthief
pydbus
];
buildInputs = [
gtk4
libadwaita
];
dontWrapGApps = true;
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Extract color palettes from your images";
homepage = "https://jeffser.com/pigment/";
downloadPage = "https://github.com/Jeffser/Pigment";
changelog = "https://github.com/Jeffser/Pigment/releases/tag/${version}";
license = lib.licenses.gpl3Plus;
mainProgram = "pigment";
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.awwpotato ];
};
}