Merge pull request #278390 from donovanglover/lutgen
lutgen: add shell completions
This commit is contained in:
commit
020146194a
2 changed files with 14 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
|
, stdenv
|
||||||
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
|
@ -16,10 +18,21 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoHash = "sha256-DiorrgTH9lIdmaZL7451uCXj9X7M6eHf4MQc85MpU7s=";
|
cargoHash = "sha256-DiorrgTH9lIdmaZL7451uCXj9X7M6eHf4MQc85MpU7s=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
|
installShellCompletion --cmd lutgen \
|
||||||
|
--bash <($out/bin/lutgen completions bash) \
|
||||||
|
--fish <($out/bin/lutgen completions fish) \
|
||||||
|
--zsh <($out/bin/lutgen completions zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A blazingly fast interpolated LUT generator and applicator for arbitrary and popular color palettes";
|
description = "A blazingly fast interpolated LUT generator and applicator for arbitrary and popular color palettes";
|
||||||
homepage = "https://github.com/ozwaldorf/lutgen-rs";
|
homepage = "https://github.com/ozwaldorf/lutgen-rs";
|
||||||
maintainers = with maintainers; [ zzzsy ];
|
maintainers = with maintainers; [ zzzsy donovanglover ];
|
||||||
mainProgram = "lutgen";
|
mainProgram = "lutgen";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
|
@ -19582,8 +19582,6 @@ with pkgs;
|
||||||
|
|
||||||
lurk = callPackage ../development/tools/lurk { };
|
lurk = callPackage ../development/tools/lurk { };
|
||||||
|
|
||||||
lutgen = callPackage ../applications/graphics/lutgen { };
|
|
||||||
|
|
||||||
maizzle = callPackage ../development/tools/maizzle { };
|
maizzle = callPackage ../development/tools/maizzle { };
|
||||||
|
|
||||||
malt = callPackage ../development/tools/profiling/malt { };
|
malt = callPackage ../development/tools/profiling/malt { };
|
||||||
|
|
Loading…
Reference in a new issue