diff options
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/ab/ab-av1/package.nix | 4 | ||||
-rw-r--r-- | pkgs/by-name/as/ast-grep/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/cl/clipcat/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/co/codeberg-cli/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/di/diesel-cli/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/el/elf2nucleus/package.nix | 3 | ||||
-rw-r--r-- | pkgs/by-name/en/engage/package.nix | 7 | ||||
-rw-r--r-- | pkgs/by-name/jo/joshuto/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/ma/maa-cli/package.nix | 1 | ||||
-rw-r--r-- | pkgs/by-name/pa/pace/package.nix | 3 | ||||
-rw-r--r-- | pkgs/by-name/pi/pixi/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/qr/qrtool/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/re/release-plz/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/sn/sn0int/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/so/solana-cli/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/st/steamguard-cli/package.nix | 3 | ||||
-rw-r--r-- | pkgs/by-name/zo/zola/package.nix | 2 |
17 files changed, 26 insertions, 17 deletions
diff --git a/pkgs/by-name/ab/ab-av1/package.nix b/pkgs/by-name/ab/ab-av1/package.nix index 7319c2fa22a8..aa057f69e06b 100644 --- a/pkgs/by-name/ab/ab-av1/package.nix +++ b/pkgs/by-name/ab/ab-av1/package.nix @@ -1,4 +1,4 @@ -{ lib, rustPlatform, fetchFromGitHub, installShellFiles }: +{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv }: rustPlatform.buildRustPackage rec { pname = "ab-av1"; @@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ installShellFiles ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd ab-av1 \ --bash <($out/bin/ab-av1 print-completions bash) \ --fish <($out/bin/ab-av1 print-completions fish) \ diff --git a/pkgs/by-name/as/ast-grep/package.nix b/pkgs/by-name/as/ast-grep/package.nix index 644ef2e284ca..ab33df30035a 100644 --- a/pkgs/by-name/as/ast-grep/package.nix +++ b/pkgs/by-name/as/ast-grep/package.nix @@ -25,7 +25,7 @@ rustPlatform.buildRustPackage rec { rm .cargo/config.toml ''; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd sg \ --bash <($out/bin/sg completions bash) \ --fish <($out/bin/sg completions fish) \ diff --git a/pkgs/by-name/cl/clipcat/package.nix b/pkgs/by-name/cl/clipcat/package.nix index b72baf6e46b5..fe4803bd3eeb 100644 --- a/pkgs/by-name/cl/clipcat/package.nix +++ b/pkgs/by-name/cl/clipcat/package.nix @@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec { "--skip=test_x11_primary" ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' for cmd in clipcatd clipcatctl clipcat-menu clipcat-notify; do installShellCompletion --cmd $cmd \ --bash <($out/bin/$cmd completions bash) \ diff --git a/pkgs/by-name/co/codeberg-cli/package.nix b/pkgs/by-name/co/codeberg-cli/package.nix index fce36f682c3d..825731d4d1b4 100644 --- a/pkgs/by-name/co/codeberg-cli/package.nix +++ b/pkgs/by-name/co/codeberg-cli/package.nix @@ -39,7 +39,7 @@ rustPlatform.buildRustPackage rec { ] ); - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd berg \ --bash <($out/bin/berg completion bash) \ --fish <($out/bin/berg completion fish) \ diff --git a/pkgs/by-name/di/diesel-cli/package.nix b/pkgs/by-name/di/diesel-cli/package.nix index ad626b57903a..970d4458077a 100644 --- a/pkgs/by-name/di/diesel-cli/package.nix +++ b/pkgs/by-name/di/diesel-cli/package.nix @@ -79,7 +79,7 @@ rustPlatform.buildRustPackage rec { # Tests currently fail due to *many* duplicate definition errors doCheck = false; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd diesel \ --bash <($out/bin/diesel completions bash) \ --fish <($out/bin/diesel completions fish) \ diff --git a/pkgs/by-name/el/elf2nucleus/package.nix b/pkgs/by-name/el/elf2nucleus/package.nix index fad1d8719971..1e755c629338 100644 --- a/pkgs/by-name/el/elf2nucleus/package.nix +++ b/pkgs/by-name/el/elf2nucleus/package.nix @@ -4,6 +4,7 @@ , lib , micronucleus , rustPlatform +, stdenv }: rustPlatform.buildRustPackage rec { @@ -23,7 +24,7 @@ rustPlatform.buildRustPackage rec { buildInputs = [ micronucleus ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd elf2nucleus \ --bash <($out/bin/elf2nucleus --completions bash) \ --fish <($out/bin/elf2nucleus --completions fish) \ diff --git a/pkgs/by-name/en/engage/package.nix b/pkgs/by-name/en/engage/package.nix index 8a87e0d46097..585d072dae42 100644 --- a/pkgs/by-name/en/engage/package.nix +++ b/pkgs/by-name/en/engage/package.nix @@ -2,6 +2,7 @@ , installShellFiles , rustPlatform , fetchFromGitLab +, stdenv }: let @@ -25,7 +26,8 @@ rustPlatform.buildRustPackage { installShellFiles ]; - postInstall = "installShellCompletion --cmd ${pname} " + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ( + "installShellCompletion --cmd ${pname} " + builtins.concatStringsSep " " (builtins.map @@ -35,7 +37,8 @@ rustPlatform.buildRustPackage { "fish" "zsh" ] - ); + ) + ); meta = { description = "Task runner with DAG-based parallelism"; diff --git a/pkgs/by-name/jo/joshuto/package.nix b/pkgs/by-name/jo/joshuto/package.nix index 08f5429fbb5c..e24a3cd93e8f 100644 --- a/pkgs/by-name/jo/joshuto/package.nix +++ b/pkgs/by-name/jo/joshuto/package.nix @@ -25,7 +25,7 @@ rustPlatform.buildRustPackage rec { darwin.apple_sdk.frameworks.Foundation ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd joshuto \ --bash <($out/bin/joshuto completions bash) \ --zsh <($out/bin/joshuto completions zsh) \ diff --git a/pkgs/by-name/ma/maa-cli/package.nix b/pkgs/by-name/ma/maa-cli/package.nix index e1bfed03e0eb..c6d4177c93a0 100644 --- a/pkgs/by-name/ma/maa-cli/package.nix +++ b/pkgs/by-name/ma/maa-cli/package.nix @@ -65,6 +65,7 @@ rustPlatform.buildRustPackage rec { ] }" + '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd maa \ --bash <($out/bin/maa complete bash) \ --fish <($out/bin/maa complete fish) \ diff --git a/pkgs/by-name/pa/pace/package.nix b/pkgs/by-name/pa/pace/package.nix index 738077648c1b..a90ce66f537e 100644 --- a/pkgs/by-name/pa/pace/package.nix +++ b/pkgs/by-name/pa/pace/package.nix @@ -3,6 +3,7 @@ rustPlatform, fetchFromGitHub, installShellFiles, + stdenv, }: let version = "0.15.2"; in @@ -21,7 +22,7 @@ in nativeBuildInputs = [installShellFiles]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd pace \ --bash <($out/bin/pace setup completions bash) \ --fish <($out/bin/pace setup completions fish) \ diff --git a/pkgs/by-name/pi/pixi/package.nix b/pkgs/by-name/pi/pixi/package.nix index e6b4c5578392..8fe5169127e6 100644 --- a/pkgs/by-name/pi/pixi/package.nix +++ b/pkgs/by-name/pi/pixi/package.nix @@ -80,7 +80,7 @@ rustPlatform.buildRustPackage rec { "--skip=cli::shell_hook::tests::test_environment_json" ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd pixi \ --bash <($out/bin/pixi completion --shell bash) \ --fish <($out/bin/pixi completion --shell fish) \ diff --git a/pkgs/by-name/qr/qrtool/package.nix b/pkgs/by-name/qr/qrtool/package.nix index c761e4c17863..fe90881fd8d1 100644 --- a/pkgs/by-name/qr/qrtool/package.nix +++ b/pkgs/by-name/qr/qrtool/package.nix @@ -1,4 +1,5 @@ { lib +, stdenv , fetchFromGitHub , rustPlatform , asciidoctor @@ -24,6 +25,7 @@ rustPlatform.buildRustPackage rec { # Built by ./build.rs using `asciidoctor` installManPage ./target/*/release/build/qrtool*/out/*.? + '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd qrtool \ --bash <($out/bin/qrtool --generate-completion bash) \ --fish <($out/bin/qrtool --generate-completion fish) \ diff --git a/pkgs/by-name/re/release-plz/package.nix b/pkgs/by-name/re/release-plz/package.nix index 25958a05d8c8..da5b97c8ef47 100644 --- a/pkgs/by-name/re/release-plz/package.nix +++ b/pkgs/by-name/re/release-plz/package.nix @@ -28,7 +28,7 @@ rustPlatform.buildRustPackage rec { # Tests depend on additional infrastructure to be running locally doCheck = false; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd ${meta.mainProgram} \ --bash <($out/bin/${meta.mainProgram} generate-completions bash) \ --fish <($out/bin/${meta.mainProgram} generate-completions fish) \ diff --git a/pkgs/by-name/sn/sn0int/package.nix b/pkgs/by-name/sn/sn0int/package.nix index 2410fa0cc230..43eadd2c3940 100644 --- a/pkgs/by-name/sn/sn0int/package.nix +++ b/pkgs/by-name/sn/sn0int/package.nix @@ -41,7 +41,7 @@ rustPlatform.buildRustPackage rec { # in "checkPhase", hence fails in sandbox of "nix". doCheck = false; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd sn0int \ --bash <($out/bin/sn0int completions bash) \ --fish <($out/bin/sn0int completions fish) \ diff --git a/pkgs/by-name/so/solana-cli/package.nix b/pkgs/by-name/so/solana-cli/package.nix index b4a56dda78c9..aa7bcd58936d 100644 --- a/pkgs/by-name/so/solana-cli/package.nix +++ b/pkgs/by-name/so/solana-cli/package.nix @@ -80,7 +80,7 @@ rustPlatform.buildRustPackage rec { Libsystem ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd solana \ --bash <($out/bin/solana completion --shell bash) \ --fish <($out/bin/solana completion --shell fish) \ diff --git a/pkgs/by-name/st/steamguard-cli/package.nix b/pkgs/by-name/st/steamguard-cli/package.nix index 38ed7f69b33b..6cbdb77e10b9 100644 --- a/pkgs/by-name/st/steamguard-cli/package.nix +++ b/pkgs/by-name/st/steamguard-cli/package.nix @@ -2,6 +2,7 @@ , lib , rustPlatform , fetchFromGitHub +, stdenv }: rustPlatform.buildRustPackage rec { @@ -18,7 +19,7 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-LYrn0MKrOYjYPLdBukXRXGW+XWVcGHNAl0vC/qkmkNs="; nativeBuildInputs = [ installShellFiles ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd steamguard \ --bash <($out/bin/steamguard completion --shell bash) \ --fish <($out/bin/steamguard completion --shell fish) \ diff --git a/pkgs/by-name/zo/zola/package.nix b/pkgs/by-name/zo/zola/package.nix index 2b25b1fd346b..9f6152b3397c 100644 --- a/pkgs/by-name/zo/zola/package.nix +++ b/pkgs/by-name/zo/zola/package.nix @@ -36,7 +36,7 @@ rustPlatform.buildRustPackage rec { RUSTONIG_SYSTEM_LIBONIG = true; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd zola \ --bash <($out/bin/zola completion bash) \ --fish <($out/bin/zola completion fish) \ |