treewide: gate command execution for installShellCompletion behind buildPlatform.canExecute hostPlatform
This treewide conditions execution of the built applications for the purpose of generating shell completions behind `stdenv.buildPlatform.canExecute stdenv.hostPlatform`, which helps cross. This is a common issue I spot during review, let's prevent copy-paste errors by fixing it treewide.
Candidates were located with:
```shell
rg 'installShellCompletion' -l -tnix | xargs grep -F 'stdenv.buildPlatform.canExecute stdenv.hostPlatform' -L
```
Then I migrated the obvious cases which would not require a rebuild, as a means of testing.
This diff was not scripted. Should be zero rebuilds.
<details>
<summary>
Alternatives
</summary>
Alternatively I could have use this pattern:
```nix
postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) (
let
emulator = stdenv.hostPlatform.emulator buildPackages;
in
''
installShellCompletion --cmd foobar \
--bash <(${emulator} $out/bin/foobar completion bash) \
--fish <(${emulator} $out/bin/foobar completion fish) \
--zsh <(${emulator} $out/bin/foobar completion zsh)
''
);
```
but that would cause rebuilds and will also require testing.
---
An other alternative is to use the binary from the corresponding package in `buildPackages`.
This however would also cause rebuilds and will also require testing.
</details>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -45,7 +46,7 @@ let
|
|||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kops \
|
installShellCompletion --cmd kops \
|
||||||
--bash <($GOPATH/bin/kops completion bash) \
|
--bash <($GOPATH/bin/kops completion bash) \
|
||||||
--fish <($GOPATH/bin/kops completion fish) \
|
--fish <($GOPATH/bin/kops completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
coredns,
|
coredns,
|
||||||
@@ -40,12 +41,14 @@ buildGoModule rec {
|
|||||||
subPackages = map (p: "app/" + p) components;
|
subPackages = map (p: "app/" + p) components;
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
|
lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) (
|
||||||
lib.concatMapStringsSep "\n" (p: ''
|
lib.concatMapStringsSep "\n" (p: ''
|
||||||
installShellCompletion --cmd ${p} \
|
installShellCompletion --cmd ${p} \
|
||||||
--bash <($out/bin/${p} completion bash) \
|
--bash <($out/bin/${p} completion bash) \
|
||||||
--fish <($out/bin/${p} completion fish) \
|
--fish <($out/bin/${p} completion fish) \
|
||||||
--zsh <($out/bin/${p} completion zsh)
|
--zsh <($out/bin/${p} completion zsh)
|
||||||
'') components
|
'') components
|
||||||
|
)
|
||||||
+ lib.optionalString isFull ''
|
+ lib.optionalString isFull ''
|
||||||
ln -sLf ${coredns}/bin/coredns $out/bin
|
ln -sLf ${coredns}/bin/coredns $out/bin
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -51,6 +52,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/bin/cli $out/bin/linkerd
|
mv $out/bin/cli $out/bin/linkerd
|
||||||
|
''
|
||||||
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd linkerd \
|
installShellCompletion --cmd linkerd \
|
||||||
--bash <($out/bin/linkerd completion bash) \
|
--bash <($out/bin/linkerd completion bash) \
|
||||||
--zsh <($out/bin/linkerd completion zsh) \
|
--zsh <($out/bin/linkerd completion zsh) \
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ stdenv.mkDerivation {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
HOME=$TMPDIR
|
HOME=$TMPDIR
|
||||||
installShellCompletion --cmd ${mainProgram} \
|
installShellCompletion --cmd ${mainProgram} \
|
||||||
--bash <($out/bin/${mainProgram} completion bash) \
|
--bash <($out/bin/${mainProgram} completion bash) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -27,7 +28,7 @@ buildGoModule rec {
|
|||||||
"-w"
|
"-w"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd abbreviate \
|
installShellCompletion --cmd abbreviate \
|
||||||
--bash <($out/bin/abbreviate completion bash) \
|
--bash <($out/bin/abbreviate completion bash) \
|
||||||
--fish <($out/bin/abbreviate completion fish) \
|
--fish <($out/bin/abbreviate completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -30,7 +31,7 @@ buildGoModule {
|
|||||||
"-X github.com/algolia/cli/pkg/version.Version=${version}"
|
"-X github.com/algolia/cli/pkg/version.Version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd algolia \
|
installShellCompletion --cmd algolia \
|
||||||
--bash <($out/bin/algolia completion bash) \
|
--bash <($out/bin/algolia completion bash) \
|
||||||
--fish <($out/bin/algolia completion fish) \
|
--fish <($out/bin/algolia completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -22,7 +23,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
cargoHash = "sha256-lo9JpsHkvyrEqFnIiGlU2o4rREeQeqWpe9WMwisvw+4=";
|
cargoHash = "sha256-lo9JpsHkvyrEqFnIiGlU2o4rREeQeqWpe9WMwisvw+4=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd angrr \
|
installShellCompletion --cmd angrr \
|
||||||
--bash <($out/bin/angrr completion bash) \
|
--bash <($out/bin/angrr completion bash) \
|
||||||
--fish <($out/bin/angrr completion fish) \
|
--fish <($out/bin/angrr completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -42,7 +43,7 @@ buildGoModule rec {
|
|||||||
"-X github.com/alexellis/arkade/pkg.Version=${version}"
|
"-X github.com/alexellis/arkade/pkg.Version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd arkade \
|
installShellCompletion --cmd arkade \
|
||||||
--bash <($out/bin/arkade completion bash) \
|
--bash <($out/bin/arkade completion bash) \
|
||||||
--zsh <($out/bin/arkade completion zsh) \
|
--zsh <($out/bin/arkade completion zsh) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -19,7 +20,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd astartectl \
|
installShellCompletion --cmd astartectl \
|
||||||
--bash <($out/bin/astartectl completion bash) \
|
--bash <($out/bin/astartectl completion bash) \
|
||||||
--fish <($out/bin/astartectl completion fish) \
|
--fish <($out/bin/astartectl completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -32,7 +33,7 @@ buildGoModule (finalAttrs: {
|
|||||||
|
|
||||||
subPackages = [ "." ];
|
subPackages = [ "." ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd atlas \
|
installShellCompletion --cmd atlas \
|
||||||
--bash <($out/bin/atlas completion bash) \
|
--bash <($out/bin/atlas completion bash) \
|
||||||
--fish <($out/bin/atlas completion fish) \
|
--fish <($out/bin/atlas completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
@@ -20,7 +21,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd autorestic \
|
installShellCompletion --cmd autorestic \
|
||||||
--bash <($out/bin/autorestic completion bash) \
|
--bash <($out/bin/autorestic completion bash) \
|
||||||
--fish <($out/bin/autorestic completion fish) \
|
--fish <($out/bin/autorestic completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -25,7 +26,7 @@ buildGoModule rec {
|
|||||||
"-X github.com/controlplaneio/badrobot/cmd.version=v${version}"
|
"-X github.com/controlplaneio/badrobot/cmd.version=v${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd badrobot \
|
installShellCompletion --cmd badrobot \
|
||||||
--bash <($out/bin/badrobot completion bash) \
|
--bash <($out/bin/badrobot completion bash) \
|
||||||
--fish <($out/bin/badrobot completion fish) \
|
--fish <($out/bin/badrobot completion fish) \
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
|||||||
lib.optionalString stdenvNoCC.hostPlatform.isLinux ''
|
lib.optionalString stdenvNoCC.hostPlatform.isLinux ''
|
||||||
autoPatchelf $out
|
autoPatchelf $out
|
||||||
''
|
''
|
||||||
+ ''
|
+ lib.optionalString (stdenvNoCC.buildPlatform.canExecute stdenvNoCC.hostPlatform) ''
|
||||||
export PATH=$PATH:$out/bin
|
export PATH=$PATH:$out/bin
|
||||||
installShellCompletion --cmd bleep \
|
installShellCompletion --cmd bleep \
|
||||||
--bash <(bleep install-tab-completions-bash --stdout) \
|
--bash <(bleep install-tab-completions-bash --stdout) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -43,7 +44,7 @@ buildGoModule rec {
|
|||||||
ldflags+=" -X sigs.k8s.io/release-utils/version.buildDate=$(cat SOURCE_DATE_EPOCH)"
|
ldflags+=" -X sigs.k8s.io/release-utils/version.buildDate=$(cat SOURCE_DATE_EPOCH)"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd bom \
|
installShellCompletion --cmd bom \
|
||||||
--bash <($out/bin/bom completion bash) \
|
--bash <($out/bin/bom completion bash) \
|
||||||
--fish <($out/bin/bom completion fish) \
|
--fish <($out/bin/bom completion fish) \
|
||||||
|
|||||||
@@ -56,7 +56,8 @@ python3Packages.buildPythonApplication rec {
|
|||||||
apprise = [ python3Packages.apprise ];
|
apprise = [ python3Packages.apprise ];
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = ''
|
postInstall =
|
||||||
|
lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd borgmatic \
|
installShellCompletion --cmd borgmatic \
|
||||||
--bash <($out/bin/borgmatic --bash-completion)
|
--bash <($out/bin/borgmatic --bash-completion)
|
||||||
''
|
''
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -31,7 +32,7 @@ buildGoModule {
|
|||||||
"-X github.com/buildpacks/pack.Version=${version}"
|
"-X github.com/buildpacks/pack.Version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd pack \
|
installShellCompletion --cmd pack \
|
||||||
--zsh $(PACK_HOME=$PWD $out/bin/pack completion --shell zsh) \
|
--zsh $(PACK_HOME=$PWD $out/bin/pack completion --shell zsh) \
|
||||||
--bash $(PACK_HOME=$PWD $out/bin/pack completion --shell bash) \
|
--bash $(PACK_HOME=$PWD $out/bin/pack completion --shell bash) \
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ rustPlatform.buildRustPackage {
|
|||||||
];
|
];
|
||||||
buildInputs = [ libwebp ];
|
buildInputs = [ libwebp ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd catwalk \
|
installShellCompletion --cmd catwalk \
|
||||||
--bash <("$out/bin/catwalk" completion bash) \
|
--bash <("$out/bin/catwalk" completion bash) \
|
||||||
--zsh <("$out/bin/catwalk" completion zsh) \
|
--zsh <("$out/bin/catwalk" completion zsh) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -25,7 +26,7 @@ buildGoModule rec {
|
|||||||
"-X main.version=v${version}"
|
"-X main.version=v${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd chain-bench \
|
installShellCompletion --cmd chain-bench \
|
||||||
--bash <($out/bin/chain-bench completion bash) \
|
--bash <($out/bin/chain-bench completion bash) \
|
||||||
--fish <($out/bin/chain-bench completion fish) \
|
--fish <($out/bin/chain-bench completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -27,7 +28,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd changelogger \
|
installShellCompletion --cmd changelogger \
|
||||||
--bash <($out/bin/changelogger completion bash) \
|
--bash <($out/bin/changelogger completion bash) \
|
||||||
--fish <($out/bin/changelogger completion fish) \
|
--fish <($out/bin/changelogger completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
"-X=main.version=${version}"
|
"-X=main.version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd changie \
|
installShellCompletion --cmd changie \
|
||||||
--bash <($out/bin/changie completion bash) \
|
--bash <($out/bin/changie completion bash) \
|
||||||
--fish <($out/bin/changie completion fish) \
|
--fish <($out/bin/changie completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
cilium-cli,
|
cilium-cli,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
@@ -34,7 +35,7 @@ buildGoModule rec {
|
|||||||
# 2022/06/25 10:36:22 Unable to start gops: mkdir /homeless-shelter: permission denied
|
# 2022/06/25 10:36:22 Unable to start gops: mkdir /homeless-shelter: permission denied
|
||||||
HOME = "$TMPDIR";
|
HOME = "$TMPDIR";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd cilium \
|
installShellCompletion --cmd cilium \
|
||||||
--bash <($out/bin/cilium completion bash) \
|
--bash <($out/bin/cilium completion bash) \
|
||||||
--fish <($out/bin/cilium completion fish) \
|
--fish <($out/bin/cilium completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -24,7 +25,7 @@ buildGoModule rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd cirrus \
|
installShellCompletion --cmd cirrus \
|
||||||
--bash <($out/bin/cirrus completion bash) \
|
--bash <($out/bin/cirrus completion bash) \
|
||||||
--zsh <($out/bin/cirrus completion zsh) \
|
--zsh <($out/bin/cirrus completion zsh) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -36,6 +37,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/bin/cli $out/bin/civo
|
mv $out/bin/cli $out/bin/civo
|
||||||
|
''
|
||||||
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd civo \
|
installShellCompletion --cmd civo \
|
||||||
--bash <($out/bin/civo completion bash) \
|
--bash <($out/bin/civo completion bash) \
|
||||||
--fish <($out/bin/civo completion fish) \
|
--fish <($out/bin/civo completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -33,7 +34,7 @@ buildGoModule rec {
|
|||||||
mv $GOPATH/bin/{cli,cliam}
|
mv $GOPATH/bin/{cli,cliam}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd cliam \
|
installShellCompletion --cmd cliam \
|
||||||
--bash <($out/bin/cliam completion bash) \
|
--bash <($out/bin/cliam completion bash) \
|
||||||
--fish <($out/bin/cliam completion fish) \
|
--fish <($out/bin/cliam completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
ttyd,
|
ttyd,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
@@ -33,6 +34,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/clive --prefix PATH : ${ttyd}/bin
|
wrapProgram $out/bin/clive --prefix PATH : ${ttyd}/bin
|
||||||
|
''
|
||||||
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd clive \
|
installShellCompletion --cmd clive \
|
||||||
--bash <($out/bin/clive completion bash) \
|
--bash <($out/bin/clive completion bash) \
|
||||||
--fish <($out/bin/clive completion fish) \
|
--fish <($out/bin/clive completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -34,7 +35,7 @@ buildGoModule rec {
|
|||||||
"-X ${t}.gitVersion=v${version}"
|
"-X ${t}.gitVersion=v${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
# errors attempting to write config to read-only $HOME
|
# errors attempting to write config to read-only $HOME
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
@@ -39,7 +40,7 @@ buildGoModule rec {
|
|||||||
--prefix PATH : ${go}/bin
|
--prefix PATH : ${go}/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd cobra-cli \
|
installShellCompletion --cmd cobra-cli \
|
||||||
--bash <($out/bin/cobra-cli completion bash) \
|
--bash <($out/bin/cobra-cli completion bash) \
|
||||||
--fish <($out/bin/cobra-cli completion fish) \
|
--fish <($out/bin/cobra-cli completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -32,7 +33,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
subPackages = [ "./cmd/copilot" ];
|
subPackages = [ "./cmd/copilot" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd copilot \
|
installShellCompletion --cmd copilot \
|
||||||
--bash <($out/bin/copilot completion bash) \
|
--bash <($out/bin/copilot completion bash) \
|
||||||
--fish <($out/bin/copilot completion fish) \
|
--fish <($out/bin/copilot completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
"-X main.version=${version}"
|
"-X main.version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd ctlptl \
|
installShellCompletion --cmd ctlptl \
|
||||||
--bash <($out/bin/ctlptl completion bash) \
|
--bash <($out/bin/ctlptl completion bash) \
|
||||||
--fish <($out/bin/ctlptl completion fish) \
|
--fish <($out/bin/ctlptl completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -30,7 +31,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
tags = [ "main" ];
|
tags = [ "main" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion \
|
installShellCompletion \
|
||||||
--cmd datree \
|
--cmd datree \
|
||||||
--bash <($out/bin/datree completion bash) \
|
--bash <($out/bin/datree completion bash) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
|
stdenv,
|
||||||
lib,
|
lib,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
@@ -29,7 +30,7 @@ buildGoModule rec {
|
|||||||
proxyVendor = true; # darwin/linux hash mismatch
|
proxyVendor = true; # darwin/linux hash mismatch
|
||||||
vendorHash = "sha256-nKKCz7T6HLCBwQjPV/kpzgtR8yNiZS/Ta0H1DlKaLk8=";
|
vendorHash = "sha256-nKKCz7T6HLCBwQjPV/kpzgtR8yNiZS/Ta0H1DlKaLk8=";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd deck \
|
installShellCompletion --cmd deck \
|
||||||
--bash <($out/bin/deck completion bash) \
|
--bash <($out/bin/deck completion bash) \
|
||||||
--fish <($out/bin/deck completion fish) \
|
--fish <($out/bin/deck completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGo125Module,
|
buildGo125Module,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -30,7 +31,7 @@ buildGo125Module rec {
|
|||||||
"-X=github.com/StackExchange/dnscontrol/v4/pkg/version.version=${version}"
|
"-X=github.com/StackExchange/dnscontrol/v4/pkg/version.version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd dnscontrol \
|
installShellCompletion --cmd dnscontrol \
|
||||||
--bash <($out/bin/dnscontrol shell-completion bash) \
|
--bash <($out/bin/dnscontrol shell-completion bash) \
|
||||||
--zsh <($out/bin/dnscontrol shell-completion zsh)
|
--zsh <($out/bin/dnscontrol shell-completion zsh)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
"-X github.com/snyk/driftctl/build.enableUsageReporting=false"
|
"-X github.com/snyk/driftctl/build.enableUsageReporting=false"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd driftctl \
|
installShellCompletion --cmd driftctl \
|
||||||
--bash <($out/bin/driftctl completion bash) \
|
--bash <($out/bin/driftctl completion bash) \
|
||||||
--fish <($out/bin/driftctl completion fish) \
|
--fish <($out/bin/driftctl completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -38,7 +39,7 @@ buildGoModule rec {
|
|||||||
"-X=github.com/homeport/dyff/internal/cmd.version=${version}"
|
"-X=github.com/homeport/dyff/internal/cmd.version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd dyff \
|
installShellCompletion --cmd dyff \
|
||||||
--bash <($out/bin/dyff completion bash) \
|
--bash <($out/bin/dyff completion bash) \
|
||||||
--fish <($out/bin/dyff completion fish) \
|
--fish <($out/bin/dyff completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -36,7 +37,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd eksctl \
|
installShellCompletion --cmd eksctl \
|
||||||
--bash <($out/bin/eksctl completion bash) \
|
--bash <($out/bin/eksctl completion bash) \
|
||||||
--fish <($out/bin/eksctl completion fish) \
|
--fish <($out/bin/eksctl completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
git,
|
git,
|
||||||
@@ -31,7 +32,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeCheckInputs = [ git ];
|
nativeCheckInputs = [ git ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd enc \
|
installShellCompletion --cmd enc \
|
||||||
--bash <($out/bin/enc completion bash) \
|
--bash <($out/bin/enc completion bash) \
|
||||||
--fish <($out/bin/enc completion fish) \
|
--fish <($out/bin/enc completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -36,7 +37,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd ent \
|
installShellCompletion --cmd ent \
|
||||||
--bash <($out/bin/ent completion bash) \
|
--bash <($out/bin/ent completion bash) \
|
||||||
--fish <($out/bin/ent completion fish) \
|
--fish <($out/bin/ent completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
sqlite,
|
sqlite,
|
||||||
@@ -32,7 +33,7 @@ buildGoModule rec {
|
|||||||
"-X github.com/manojkarthick/expenses/cmd.Version=${version}"
|
"-X github.com/manojkarthick/expenses/cmd.Version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd expenses \
|
installShellCompletion --cmd expenses \
|
||||||
--bash <($out/bin/expenses completion bash) \
|
--bash <($out/bin/expenses completion bash) \
|
||||||
--zsh <($out/bin/expenses completion zsh) \
|
--zsh <($out/bin/expenses completion zsh) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -68,7 +69,7 @@ buildGoModule rec {
|
|||||||
--set FASTLY_VICEROY_USE_PATH 1
|
--set FASTLY_VICEROY_USE_PATH 1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
export HOME="$(mktemp -d)"
|
export HOME="$(mktemp -d)"
|
||||||
installShellCompletion --cmd fastly \
|
installShellCompletion --cmd fastly \
|
||||||
--bash <($out/bin/fastly --completion-script-bash) \
|
--bash <($out/bin/fastly --completion-script-bash) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -58,7 +59,7 @@ buildGoModule rec {
|
|||||||
# There are no tests for cmd/fetchit.
|
# There are no tests for cmd/fetchit.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
for i in bash fish zsh; do
|
for i in bash fish zsh; do
|
||||||
installShellCompletion --cmd fetchit \
|
installShellCompletion --cmd fetchit \
|
||||||
--$i <($out/bin/fetchit completion $i)
|
--$i <($out/bin/fetchit completion $i)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd fioctl \
|
installShellCompletion --cmd fioctl \
|
||||||
--bash <($out/bin/fioctl completion bash) \
|
--bash <($out/bin/fioctl completion bash) \
|
||||||
--fish <($out/bin/fioctl completion fish) \
|
--fish <($out/bin/fioctl completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
testers,
|
testers,
|
||||||
@@ -53,7 +54,7 @@ buildGoModule rec {
|
|||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd flyctl \
|
installShellCompletion --cmd flyctl \
|
||||||
--bash <($out/bin/flyctl completion bash) \
|
--bash <($out/bin/flyctl completion bash) \
|
||||||
--fish <($out/bin/flyctl completion fish) \
|
--fish <($out/bin/flyctl completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -31,7 +32,7 @@ buildGoModule (finalAttrs: {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd func \
|
installShellCompletion --cmd func \
|
||||||
--bash <($out/bin/func completion bash) \
|
--bash <($out/bin/func completion bash) \
|
||||||
--zsh <($out/bin/func completion zsh)
|
--zsh <($out/bin/func completion zsh)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -22,7 +23,7 @@ buildGoModule (finalAttrs: {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd fx \
|
installShellCompletion --cmd fx \
|
||||||
--bash <($out/bin/fx --comp bash) \
|
--bash <($out/bin/fx --comp bash) \
|
||||||
--fish <($out/bin/fx --comp fish) \
|
--fish <($out/bin/fx --comp fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -31,7 +32,7 @@ buildGoModule rec {
|
|||||||
"-X=main.CommitSHA=${src.rev}"
|
"-X=main.CommitSHA=${src.rev}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd gambit \
|
installShellCompletion --cmd gambit \
|
||||||
--bash <($out/bin/gambit completion bash) \
|
--bash <($out/bin/gambit completion bash) \
|
||||||
--fish <($out/bin/gambit completion fish) \
|
--fish <($out/bin/gambit completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
subPackages = [ "cmd/gator" ];
|
subPackages = [ "cmd/gator" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd gator \
|
installShellCompletion --cmd gator \
|
||||||
--bash <($out/bin/gator completion bash) \
|
--bash <($out/bin/gator completion bash) \
|
||||||
--fish <($out/bin/gator completion fish) \
|
--fish <($out/bin/gator completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd ghorg \
|
installShellCompletion --cmd ghorg \
|
||||||
--bash <($out/bin/ghorg completion bash) \
|
--bash <($out/bin/ghorg completion bash) \
|
||||||
--fish <($out/bin/ghorg completion fish) \
|
--fish <($out/bin/ghorg completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -29,7 +30,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion \
|
installShellCompletion \
|
||||||
--bash $src/misc/bash/_ghq \
|
--bash $src/misc/bash/_ghq \
|
||||||
--fish $src/misc/fish/ghq.fish \
|
--fish $src/misc/fish/ghq.fish \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
buildNpmPackage,
|
buildNpmPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
@@ -67,7 +68,7 @@ buildGoModule rec {
|
|||||||
cp -r ${web-bundle}/bundle internal/web/root/static/bundle
|
cp -r ${web-bundle}/bundle internal/web/root/static/bundle
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
# Completions
|
# Completions
|
||||||
installShellCompletion --cmd glasskube \
|
installShellCompletion --cmd glasskube \
|
||||||
--bash <($out/bin/glasskube completion bash) \
|
--bash <($out/bin/glasskube completion bash) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -35,6 +36,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/bin/cmd $out/bin/glooctl
|
mv $out/bin/cmd $out/bin/glooctl
|
||||||
|
''
|
||||||
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd glooctl \
|
installShellCompletion --cmd glooctl \
|
||||||
--bash <($out/bin/glooctl completion bash) \
|
--bash <($out/bin/glooctl completion bash) \
|
||||||
--zsh <($out/bin/glooctl completion zsh)
|
--zsh <($out/bin/glooctl completion zsh)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -22,7 +23,7 @@ buildGoModule rec {
|
|||||||
installShellFiles
|
installShellFiles
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd gmailctl \
|
installShellCompletion --cmd gmailctl \
|
||||||
--bash <($out/bin/gmailctl completion bash) \
|
--bash <($out/bin/gmailctl completion bash) \
|
||||||
--fish <($out/bin/gmailctl completion fish) \
|
--fish <($out/bin/gmailctl completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -52,7 +53,7 @@ buildGoModule rec {
|
|||||||
ln -s ''$${bin}/bin/${bin} $out/bin/
|
ln -s ''$${bin}/bin/${bin} $out/bin/
|
||||||
'') bins
|
'') bins
|
||||||
)
|
)
|
||||||
+ ''
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
for cmd in crane gcrane; do
|
for cmd in crane gcrane; do
|
||||||
installShellCompletion --cmd "$cmd" \
|
installShellCompletion --cmd "$cmd" \
|
||||||
--bash <($GOPATH/bin/$cmd completion bash) \
|
--bash <($GOPATH/bin/$cmd completion bash) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
go,
|
go,
|
||||||
@@ -36,7 +37,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
allowGoReference = true;
|
allowGoReference = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd go-licenses \
|
installShellCompletion --cmd go-licenses \
|
||||||
--bash <("$out/bin/go-licenses" completion bash) \
|
--bash <("$out/bin/go-licenses" completion bash) \
|
||||||
--fish <("$out/bin/go-licenses" completion fish) \
|
--fish <("$out/bin/go-licenses" completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -23,7 +24,7 @@ buildGoModule rec {
|
|||||||
printf ${version} > gosmee/templates/version
|
printf ${version} > gosmee/templates/version
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd gosmee \
|
installShellCompletion --cmd gosmee \
|
||||||
--bash <($out/bin/gosmee completion bash) \
|
--bash <($out/bin/gosmee completion bash) \
|
||||||
--fish <($out/bin/gosmee completion fish) \
|
--fish <($out/bin/gosmee completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -25,7 +26,7 @@ buildGoModule rec {
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
installShellFiles
|
installShellFiles
|
||||||
];
|
];
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd goverview \
|
installShellCompletion --cmd goverview \
|
||||||
--bash <($out/bin/goverview completion bash) \
|
--bash <($out/bin/goverview completion bash) \
|
||||||
--fish <($out/bin/goverview completion fish) \
|
--fish <($out/bin/goverview completion fish) \
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ buildGoModule rec {
|
|||||||
$out/bin/alloy
|
$out/bin/alloy
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd alloy \
|
installShellCompletion --cmd alloy \
|
||||||
--bash <($out/bin/alloy completion bash) \
|
--bash <($out/bin/alloy completion bash) \
|
||||||
--fish <($out/bin/alloy completion fish) \
|
--fish <($out/bin/alloy completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildNpmPackage,
|
buildNpmPackage,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
git,
|
git,
|
||||||
@@ -28,7 +29,7 @@ buildNpmPackage rec {
|
|||||||
|
|
||||||
dontNpmBuild = true;
|
dontNpmBuild = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd gt \
|
installShellCompletion --cmd gt \
|
||||||
--bash <($out/bin/gt completion) \
|
--bash <($out/bin/gt completion) \
|
||||||
--fish <(GT_PAGER= $out/bin/gt fish) \
|
--fish <(GT_PAGER= $out/bin/gt fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
git,
|
git,
|
||||||
@@ -111,7 +112,7 @@ buildGoModule (finalAttrs: {
|
|||||||
rm grype/db/v5/namespace/cpe/namespace_test.go
|
rm grype/db/v5/namespace/cpe/namespace_test.go
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd grype \
|
installShellCompletion --cmd grype \
|
||||||
--bash <($out/bin/grype completion bash) \
|
--bash <($out/bin/grype completion bash) \
|
||||||
--fish <($out/bin/grype completion fish) \
|
--fish <($out/bin/grype completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -33,7 +34,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd gtrash \
|
installShellCompletion --cmd gtrash \
|
||||||
--bash <($out/bin/gtrash completion bash) \
|
--bash <($out/bin/gtrash completion bash) \
|
||||||
--fish <($out/bin/gtrash completion fish) \
|
--fish <($out/bin/gtrash completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
"-X main.Version=${version}"
|
"-X main.Version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
mv $out/bin/helm-ls $out/bin/helm_ls
|
mv $out/bin/helm-ls $out/bin/helm_ls
|
||||||
installShellCompletion --cmd helm_ls \
|
installShellCompletion --cmd helm_ls \
|
||||||
--bash <($out/bin/helm_ls completion bash) \
|
--bash <($out/bin/helm_ls completion bash) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGo125Module,
|
buildGo125Module,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -39,7 +40,7 @@ buildGo125Module rec {
|
|||||||
wrapProgram $out/bin/helmfile \
|
wrapProgram $out/bin/helmfile \
|
||||||
--set HELM_PLUGINS "${pluginsDir}"
|
--set HELM_PLUGINS "${pluginsDir}"
|
||||||
''
|
''
|
||||||
+ ''
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd helmfile \
|
installShellCompletion --cmd helmfile \
|
||||||
--bash <($out/bin/helmfile completion bash) \
|
--bash <($out/bin/helmfile completion bash) \
|
||||||
--fish <($out/bin/helmfile completion fish) \
|
--fish <($out/bin/helmfile completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
@@ -21,7 +22,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd hl \
|
installShellCompletion --cmd hl \
|
||||||
--bash <($out/bin/hl --shell-completions bash) \
|
--bash <($out/bin/hl --shell-completions bash) \
|
||||||
--fish <($out/bin/hl --shell-completions fish) \
|
--fish <($out/bin/hl --shell-completions fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
"-X github.com/guumaster/hostctl/cmd/hostctl/actions.version=${version}"
|
"-X github.com/guumaster/hostctl/cmd/hostctl/actions.version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd hostctl \
|
installShellCompletion --cmd hostctl \
|
||||||
--bash <($out/bin/hostctl completion bash) \
|
--bash <($out/bin/hostctl completion bash) \
|
||||||
--zsh <($out/bin/hostctl completion zsh)
|
--zsh <($out/bin/hostctl completion zsh)
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
@@ -26,7 +27,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd humioctl \
|
installShellCompletion --cmd humioctl \
|
||||||
--bash <($out/bin/humioctl completion bash) \
|
--bash <($out/bin/humioctl completion bash) \
|
||||||
--zsh <($out/bin/humioctl completion zsh)
|
--zsh <($out/bin/humioctl completion zsh)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorHash = "sha256-JFvC9V0xS8SZSdLsOtpyTrFzXjYAOaPQaJHdcnJzK3s=";
|
vendorHash = "sha256-JFvC9V0xS8SZSdLsOtpyTrFzXjYAOaPQaJHdcnJzK3s=";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd hyprkeys \
|
installShellCompletion --cmd hyprkeys \
|
||||||
--bash <($out/bin/hyprkeys completion bash) \
|
--bash <($out/bin/hyprkeys completion bash) \
|
||||||
--fish <($out/bin/hyprkeys completion fish) \
|
--fish <($out/bin/hyprkeys completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
@@ -27,7 +28,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
buildInputs = [ hyprland-workspaces ];
|
buildInputs = [ hyprland-workspaces ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd hyprland-workspaces-tui \
|
installShellCompletion --cmd hyprland-workspaces-tui \
|
||||||
--bash <($out/bin/hyprland-workspaces-tui --completions bash) \
|
--bash <($out/bin/hyprland-workspaces-tui --completions bash) \
|
||||||
--zsh <($out/bin/hyprland-workspaces-tui --completions zsh) \
|
--zsh <($out/bin/hyprland-workspaces-tui --completions zsh) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -43,7 +44,7 @@ buildGoModule rec {
|
|||||||
"-short"
|
"-short"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
export INFRACOST_SKIP_UPDATE_CHECK=true
|
export INFRACOST_SKIP_UPDATE_CHECK=true
|
||||||
installShellCompletion --cmd infracost \
|
installShellCompletion --cmd infracost \
|
||||||
--bash <($out/bin/infracost completion --shell bash) \
|
--bash <($out/bin/infracost completion --shell bash) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitea,
|
fetchFromGitea,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
"-w"
|
"-w"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd ipam \
|
installShellCompletion --cmd ipam \
|
||||||
--bash <($out/bin/ipam completion bash) \
|
--bash <($out/bin/ipam completion bash) \
|
||||||
--fish <($out/bin/ipam completion fish) \
|
--fish <($out/bin/ipam completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -52,7 +53,7 @@ buildGoModule rec {
|
|||||||
--replace-fail "TestGetK3sVersion" "SkipGetK3sVersion"
|
--replace-fail "TestGetK3sVersion" "SkipGetK3sVersion"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd k3d \
|
installShellCompletion --cmd k3d \
|
||||||
--bash <($out/bin/k3d completion bash) \
|
--bash <($out/bin/k3d completion bash) \
|
||||||
--fish <($out/bin/k3d completion fish) \
|
--fish <($out/bin/k3d completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -39,7 +40,7 @@ buildGoModule rec {
|
|||||||
"-X ${prefix}.GitVersion=v${version}"
|
"-X ${prefix}.GitVersion=v${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kubectl-sigstore \
|
installShellCompletion --cmd kubectl-sigstore \
|
||||||
--bash <($out/bin/kubectl-sigstore completion bash) \
|
--bash <($out/bin/kubectl-sigstore completion bash) \
|
||||||
--fish <($out/bin/kubectl-sigstore completion fish) \
|
--fish <($out/bin/kubectl-sigstore completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -34,6 +35,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/bin/{kubearmor-client,karmor}
|
mv $out/bin/{kubearmor-client,karmor}
|
||||||
|
''
|
||||||
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd karmor \
|
installShellCompletion --cmd karmor \
|
||||||
--bash <($out/bin/karmor completion bash) \
|
--bash <($out/bin/karmor completion bash) \
|
||||||
--fish <($out/bin/karmor completion fish) \
|
--fish <($out/bin/karmor completion fish) \
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ buildGoModule rec {
|
|||||||
ldflags+=" -X github.com/quarkslab/kdigger/commands.GITCOMMIT=$(cat COMMIT)"
|
ldflags+=" -X github.com/quarkslab/kdigger/commands.GITCOMMIT=$(cat COMMIT)"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kdigger \
|
installShellCompletion --cmd kdigger \
|
||||||
--bash <($out/bin/kdigger completion bash) \
|
--bash <($out/bin/kdigger completion bash) \
|
||||||
--fish <($out/bin/kdigger completion fish) \
|
--fish <($out/bin/kdigger completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -37,7 +38,7 @@ buildGoModule rec {
|
|||||||
"-w"
|
"-w"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kind \
|
installShellCompletion --cmd kind \
|
||||||
--bash <($out/bin/kind completion bash) \
|
--bash <($out/bin/kind completion bash) \
|
||||||
--fish <($out/bin/kind completion fish) \
|
--fish <($out/bin/kind completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
getent,
|
getent,
|
||||||
@@ -27,7 +28,7 @@ buildGoModule (finalAttrs: {
|
|||||||
|
|
||||||
ldflags = [ "-X knative.dev/client/pkg/commands/version.Version=v${finalAttrs.version}" ];
|
ldflags = [ "-X knative.dev/client/pkg/commands/version.Version=v${finalAttrs.version}" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kn \
|
installShellCompletion --cmd kn \
|
||||||
--bash <($out/bin/kn completion bash) \
|
--bash <($out/bin/kn completion bash) \
|
||||||
--zsh <($out/bin/kn completion zsh)
|
--zsh <($out/bin/kn completion zsh)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
gitMinimal,
|
gitMinimal,
|
||||||
@@ -55,7 +56,7 @@ buildGoModule rec {
|
|||||||
unset GOOS GOARCH GOARM
|
unset GOOS GOARCH GOARM
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd ko \
|
installShellCompletion --cmd ko \
|
||||||
--bash <($out/bin/ko completion bash) \
|
--bash <($out/bin/ko completion bash) \
|
||||||
--fish <($out/bin/ko completion fish) \
|
--fish <($out/bin/ko completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
"-X github.com/plexsystems/konstraint/internal/commands.version=${version}"
|
"-X github.com/plexsystems/konstraint/internal/commands.version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd konstraint \
|
installShellCompletion --cmd konstraint \
|
||||||
--bash <($out/bin/konstraint completion bash) \
|
--bash <($out/bin/konstraint completion bash) \
|
||||||
--fish <($out/bin/konstraint completion fish) \
|
--fish <($out/bin/konstraint completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -32,7 +33,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
checkFlags = [ "-skip=TestCreateContextsWithIgnorePaths" ];
|
checkFlags = [ "-skip=TestCreateContextsWithIgnorePaths" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kube-linter \
|
installShellCompletion --cmd kube-linter \
|
||||||
--bash <($out/bin/kube-linter completion bash) \
|
--bash <($out/bin/kube-linter completion bash) \
|
||||||
--fish <($out/bin/kube-linter completion fish) \
|
--fish <($out/bin/kube-linter completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -26,7 +27,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kubecfg \
|
installShellCompletion --cmd kubecfg \
|
||||||
--bash <($out/bin/kubecfg completion --shell=bash) \
|
--bash <($out/bin/kubecfg completion --shell=bash) \
|
||||||
--zsh <($out/bin/kubecfg completion --shell=zsh)
|
--zsh <($out/bin/kubecfg completion --shell=zsh)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -31,7 +32,7 @@ buildGoModule rec {
|
|||||||
installShellFiles
|
installShellFiles
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kubeone \
|
installShellCompletion --cmd kubeone \
|
||||||
--bash <($out/bin/kubeone completion bash) \
|
--bash <($out/bin/kubeone completion bash) \
|
||||||
--zsh <($out/bin/kubeone completion zsh)
|
--zsh <($out/bin/kubeone completion zsh)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -27,7 +28,7 @@ buildGoModule rec {
|
|||||||
"-X main.Commit=${version}"
|
"-X main.Commit=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd polaris \
|
installShellCompletion --cmd polaris \
|
||||||
--bash <($out/bin/polaris completion bash) \
|
--bash <($out/bin/polaris completion bash) \
|
||||||
--fish <($out/bin/polaris completion fish) \
|
--fish <($out/bin/polaris completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
git,
|
git,
|
||||||
@@ -57,7 +58,7 @@ buildGoModule rec {
|
|||||||
--replace-fail "TestSetContextMetadata" "SkipSetContextMetadata"
|
--replace-fail "TestSetContextMetadata" "SkipSetContextMetadata"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kubescape \
|
installShellCompletion --cmd kubescape \
|
||||||
--bash <($out/bin/kubescape completion bash) \
|
--bash <($out/bin/kubescape completion bash) \
|
||||||
--fish <($out/bin/kubescape completion fish) \
|
--fish <($out/bin/kubescape completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -29,7 +30,7 @@ buildGoModule rec {
|
|||||||
# Tests wants to download the kubernetes schema for use with kubeval
|
# Tests wants to download the kubernetes schema for use with kubeval
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kubesec \
|
installShellCompletion --cmd kubesec \
|
||||||
--bash <($out/bin/kubesec completion bash) \
|
--bash <($out/bin/kubesec completion bash) \
|
||||||
--fish <($out/bin/kubesec completion fish) \
|
--fish <($out/bin/kubesec completion fish) \
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
testers,
|
testers,
|
||||||
kubevirt,
|
kubevirt,
|
||||||
}:
|
}:
|
||||||
@@ -32,7 +33,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd virtctl \
|
installShellCompletion --cmd virtctl \
|
||||||
--bash <($out/bin/virtctl completion bash) \
|
--bash <($out/bin/virtctl completion bash) \
|
||||||
--fish <($out/bin/virtctl completion fish) \
|
--fish <($out/bin/virtctl completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -35,6 +36,8 @@ buildGoModule rec {
|
|||||||
# we have no integration between krew and kubectl
|
# we have no integration between krew and kubectl
|
||||||
# so better rename binary to kyverno and use as a standalone
|
# so better rename binary to kyverno and use as a standalone
|
||||||
mv $out/bin/kubectl-kyverno $out/bin/kyverno
|
mv $out/bin/kubectl-kyverno $out/bin/kyverno
|
||||||
|
''
|
||||||
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd kyverno \
|
installShellCompletion --cmd kyverno \
|
||||||
--bash <($out/bin/kyverno completion bash) \
|
--bash <($out/bin/kyverno completion bash) \
|
||||||
--zsh <($out/bin/kyverno completion zsh) \
|
--zsh <($out/bin/kyverno completion zsh) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -28,7 +29,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
subPackages = [ "." ];
|
subPackages = [ "." ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd leetgo \
|
installShellCompletion --cmd leetgo \
|
||||||
--bash <($out/bin/leetgo completion bash) \
|
--bash <($out/bin/leetgo completion bash) \
|
||||||
--fish <($out/bin/leetgo completion fish) \
|
--fish <($out/bin/leetgo completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -30,7 +31,7 @@ buildGoModule {
|
|||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd lefthook \
|
installShellCompletion --cmd lefthook \
|
||||||
--bash <($out/bin/lefthook completion bash) \
|
--bash <($out/bin/lefthook completion bash) \
|
||||||
--fish <($out/bin/lefthook completion fish) \
|
--fish <($out/bin/lefthook completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -29,7 +30,7 @@ buildGoModule rec {
|
|||||||
"-w"
|
"-w"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd libgen-cli \
|
installShellCompletion --cmd libgen-cli \
|
||||||
--bash <($out/bin/libgen-cli completion bash) \
|
--bash <($out/bin/libgen-cli completion bash) \
|
||||||
--fish <($out/bin/libgen-cli completion fish) \
|
--fish <($out/bin/libgen-cli completion fish) \
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
installShellFiles,
|
installShellFiles,
|
||||||
kubectl,
|
kubectl,
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
@@ -27,7 +28,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorHash = "sha256-7FYOQ89aUFPX+5NCPYKg+YGCXstQ6j9DK4V2mCgklu0=";
|
vendorHash = "sha256-7FYOQ89aUFPX+5NCPYKg+YGCXstQ6j9DK4V2mCgklu0=";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd litmusctl \
|
installShellCompletion --cmd litmusctl \
|
||||||
--bash <($out/bin/litmusctl completion bash) \
|
--bash <($out/bin/litmusctl completion bash) \
|
||||||
--fish <($out/bin/litmusctl completion fish) \
|
--fish <($out/bin/litmusctl completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -27,7 +28,7 @@ buildGoModule rec {
|
|||||||
"-w"
|
"-w"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd madonctl \
|
installShellCompletion --cmd madonctl \
|
||||||
--bash <($out/bin/madonctl completion bash) \
|
--bash <($out/bin/madonctl completion bash) \
|
||||||
--zsh <($out/bin/madonctl completion zsh)
|
--zsh <($out/bin/madonctl completion zsh)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -45,7 +46,7 @@ buildGoModule rec {
|
|||||||
ldflags+=" -X sigs.k8s.io/release-utils/version.buildDate=$(cat SOURCE_DATE_EPOCH)"
|
ldflags+=" -X sigs.k8s.io/release-utils/version.buildDate=$(cat SOURCE_DATE_EPOCH)"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd melange \
|
installShellCompletion --cmd melange \
|
||||||
--bash <($out/bin/melange completion bash) \
|
--bash <($out/bin/melange completion bash) \
|
||||||
--fish <($out/bin/melange completion fish) \
|
--fish <($out/bin/melange completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -29,7 +30,7 @@ buildGoModule (finalAttrs: {
|
|||||||
installShellFiles
|
installShellFiles
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd metal \
|
installShellCompletion --cmd metal \
|
||||||
--bash <($out/bin/metal completion bash) \
|
--bash <($out/bin/metal completion bash) \
|
||||||
--fish <($out/bin/metal completion fish) \
|
--fish <($out/bin/metal completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
python3,
|
python3,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -51,7 +52,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
(lib.makeBinPath [ awscli ])
|
(lib.makeBinPath [ awscli ])
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd nimbo \
|
installShellCompletion --cmd nimbo \
|
||||||
--zsh <(_NIMBO_COMPLETE=source_zsh $out/bin/nimbo) \
|
--zsh <(_NIMBO_COMPLETE=source_zsh $out/bin/nimbo) \
|
||||||
--bash <(_NIMBO_COMPLETE=source_bash $out/bin/nimbo) \
|
--bash <(_NIMBO_COMPLETE=source_bash $out/bin/nimbo) \
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
openssl
|
openssl
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd nixci \
|
installShellCompletion --cmd nixci \
|
||||||
--bash <($out/bin/nixci completion bash) \
|
--bash <($out/bin/nixci completion bash) \
|
||||||
--fish <($out/bin/nixci completion fish) \
|
--fish <($out/bin/nixci completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -33,7 +34,7 @@ buildGoModule (finalAttrs: {
|
|||||||
"-X github.com/notaryproject/notation/internal/version.BuildMetadata="
|
"-X github.com/notaryproject/notation/internal/version.BuildMetadata="
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd notation \
|
installShellCompletion --cmd notation \
|
||||||
--bash <($out/bin/notation completion bash) \
|
--bash <($out/bin/notation completion bash) \
|
||||||
--fish <($out/bin/notation completion fish) \
|
--fish <($out/bin/notation completion fish) \
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
"--lib"
|
"--lib"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd novops \
|
installShellCompletion --cmd novops \
|
||||||
--bash <($out/bin/novops completion bash) \
|
--bash <($out/bin/novops completion bash) \
|
||||||
--fish <($out/bin/novops completion fish) \
|
--fish <($out/bin/novops completion fish) \
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -29,7 +30,7 @@ buildGoModule (finalAttrs: {
|
|||||||
installShellFiles
|
installShellFiles
|
||||||
writableTmpDirAsHomeHook
|
writableTmpDirAsHomeHook
|
||||||
];
|
];
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd nvs \
|
installShellCompletion --cmd nvs \
|
||||||
--bash <($out/bin/nvs completion bash) \
|
--bash <($out/bin/nvs completion bash) \
|
||||||
--fish <($out/bin/nvs completion fish) \
|
--fish <($out/bin/nvs completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -38,7 +39,7 @@ buildGoModule rec {
|
|||||||
"-skip=^TestCLI$"
|
"-skip=^TestCLI$"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd ocm \
|
installShellCompletion --cmd ocm \
|
||||||
--bash <($out/bin/ocm completion bash) \
|
--bash <($out/bin/ocm completion bash) \
|
||||||
--fish <($out/bin/ocm completion fish) \
|
--fish <($out/bin/ocm completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -65,7 +66,7 @@ buildGoModule (finalAttrs: {
|
|||||||
in
|
in
|
||||||
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd okteto \
|
installShellCompletion --cmd okteto \
|
||||||
--bash <($out/bin/okteto completion bash) \
|
--bash <($out/bin/okteto completion bash) \
|
||||||
--fish <($out/bin/okteto completion fish) \
|
--fish <($out/bin/okteto completion fish) \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@@ -29,7 +30,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd omnictl \
|
installShellCompletion --cmd omnictl \
|
||||||
--bash <($out/bin/omnictl completion bash) \
|
--bash <($out/bin/omnictl completion bash) \
|
||||||
--fish <($out/bin/omnictl completion fish) \
|
--fish <($out/bin/omnictl completion fish) \
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ buildGoModule (finalAttrs: {
|
|||||||
rm v1/server/server_bench_test.go
|
rm v1/server/server_bench_test.go
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd opa \
|
installShellCompletion --cmd opa \
|
||||||
--bash <($out/bin/opa completion bash) \
|
--bash <($out/bin/opa completion bash) \
|
||||||
--fish <($out/bin/opa completion fish) \
|
--fish <($out/bin/opa completion fish) \
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user