8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
16 hash = "sha256-Rj6y8ZiNWQsGn8B+iNMZvuE/U2703oYbJW+ZSdV3fl4=";
19 cargoHash = "sha256-7yNr6Zc5A7rj6sUnplo2gB2xNUgZ3TLwUuBEfVKZfIQ=";
25 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
26 installShellCompletion --cmd lutgen \
27 --bash <($out/bin/lutgen completions bash) \
28 --fish <($out/bin/lutgen completions fish) \
29 --zsh <($out/bin/lutgen completions zsh)
33 description = "A blazingly fast interpolated LUT generator and applicator for arbitrary and popular color palettes";
34 homepage = "https://github.com/ozwaldorf/lutgen-rs";
35 maintainers = with maintainers; [ zzzsy donovanglover ];
36 mainProgram = "lutgen";
37 license = licenses.mit;