Files
nixpkgs/pkgs/by-name/pa/palettum/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

55 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
ffmpeg,
vulkan-loader,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "palettum";
version = "0.6.1";
src = fetchFromGitHub {
owner = "arrowpc";
repo = "palettum";
tag = "v${finalAttrs.version}";
hash = "sha256-xJGXLJPsfrU/BiS2GuEoJNbXaQZbbkZaArf4otiUqqA=";
};
cargoHash = "sha256-c1Xx7U7OU9hcjHNEkFAJ1dYksZq0rL6QcSKGGXuUJYY=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
ffmpeg
vulkan-loader
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "CLI tool that lets you recolor images, GIFs and videos";
longDescription = ''
Palettum is a web app and CLI tool that lets you recolor images,
GIFs, and videos with any custom palette of your choosing. It
lets you apply any custom palette by either snapping each pixel
to its closest color (ideal for pixel-art styles), or blending
the palette as a filter for a smoother effect.
'';
homepage = "https://github.com/arrowpc/palettum";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ yiyu ];
mainProgram = "palettum";
};
})