mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
Merge pull request #278390 from donovanglover/lutgen
lutgen: add shell completions
This commit is contained in:
commit
020146194a
@ -1,6 +1,8 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, stdenv
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
@ -16,10 +18,21 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
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; {
|
||||
description = "A blazingly fast interpolated LUT generator and applicator for arbitrary and popular color palettes";
|
||||
homepage = "https://github.com/ozwaldorf/lutgen-rs";
|
||||
maintainers = with maintainers; [ zzzsy ];
|
||||
maintainers = with maintainers; [ zzzsy donovanglover ];
|
||||
mainProgram = "lutgen";
|
||||
license = licenses.mit;
|
||||
};
|
@ -19582,8 +19582,6 @@ with pkgs;
|
||||
|
||||
lurk = callPackage ../development/tools/lurk { };
|
||||
|
||||
lutgen = callPackage ../applications/graphics/lutgen { };
|
||||
|
||||
maizzle = callPackage ../development/tools/maizzle { };
|
||||
|
||||
malt = callPackage ../development/tools/profiling/malt { };
|
||||
|
Loading…
Reference in New Issue
Block a user