ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
stdenv,
|
|
installShellFiles,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lutgen";
|
|
version = "0.11.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ozwaldorf";
|
|
repo = "lutgen-rs";
|
|
rev = "v${version}";
|
|
hash = "sha256-jmMVeDDVb/TuxulDYj+8y4Kl42EJTAWb3tAsanfWduE=";
|
|
};
|
|
|
|
cargoHash = "sha256-cT999TukdiKmmNUpK7SE1uiuNoLhmjdtz/2cYXFC6dk=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
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)
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|