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
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
stdenv,
|
|
installShellFiles,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lutgen";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ozwaldorf";
|
|
repo = "lutgen-rs";
|
|
tag = "lutgen-v${version}";
|
|
hash = "sha256-ENhaJTbaAv52YFNjce9Ln/LQvP/Nw2Tk5eMmr8mKwQ0=";
|
|
};
|
|
|
|
cargoHash = "sha256-PEso+fTH1DndRUPULYIDMAqnrfz8W9iVVxZ7W2N/I5U=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
cargoBuildFlags = [
|
|
"--bin"
|
|
"lutgen"
|
|
];
|
|
|
|
cargoTestFlags = [
|
|
"-p"
|
|
"lutgen-cli"
|
|
];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd lutgen \
|
|
--bash <($out/bin/lutgen --bpaf-complete-style-bash) \
|
|
--fish <($out/bin/lutgen --bpaf-complete-style-fish) \
|
|
--zsh <($out/bin/lutgen --bpaf-complete-style-zsh)
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [ "--version-regex=^lutgen-v([0-9.]+)$" ];
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Blazingly fast interpolated LUT generator and applicator for arbitrary and popular color palettes";
|
|
homepage = "https://github.com/ozwaldorf/lutgen-rs";
|
|
maintainers = with maintainers; [
|
|
ozwaldorf
|
|
zzzsy
|
|
donovanglover
|
|
];
|
|
mainProgram = "lutgen";
|
|
license = licenses.mit;
|
|
};
|
|
}
|