lutgen: v0.12.1 -> v1.0.0

- adds passthru.updateScript for new tag schema
- use new git fetcher field `tag`
This commit is contained in:
ozwaldorf
2025-06-26 07:57:45 -04:00
parent 4ab0631675
commit 1cde5d5abb
+19 -4
View File
@@ -4,24 +4,35 @@
rustPlatform,
stdenv,
installShellFiles,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "lutgen";
version = "0.12.1";
version = "1.0.0";
src = fetchFromGitHub {
owner = "ozwaldorf";
repo = "lutgen-rs";
rev = "v${version}";
hash = "sha256-JFVDiq53AZhiTqEXplCuKoATxeHp/HDJ8p0a6WzVq6I=";
tag = "lutgen-v${version}";
hash = "sha256-hJ5yD8Yu08kcr2rWY59iVEFJH+chroEWSsP2g5agFuo=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-tOFO2eRWd03zzGX3Ia1IBQ27kmSMX7JgbXmaejRTfp4=";
cargoHash = "sha256-VsKRLxh6uRG2A5AvJBMdD+bXg/X9mp5o1iPR9MZhrbQ=";
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) \
@@ -29,6 +40,10 @@ rustPlatform.buildRustPackage rec {
--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";