nixpkgs/pkgs/tools/nix
Julius Michaelis 6a9beaf893 treewide: skip generating shell completions using $out/bin/… when cross compiling
This focuses on Rust packages, since the most commonly used argument
parser library (clap/structopt) makes the following pattern natural and
thus common:

  postInstall = ''
    installShellCompletion --cmd foo \
      --bash <($out/bin/foo completion bash) \
      …

This commit just guards those with

lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform)

splitting the string where unrelated actions are performed.
2024-08-04 10:50:48 +09:00
..
alejandra
dnadd
fh treewide: skip generating shell completions using $out/bin/… when cross compiling 2024-08-04 10:50:48 +09:00
gridlock
info
nix-init
nix-melt
nix-output-monitor
nix-query-tree-viewer
nix-script
nixci
nixdoc
nixel
nixos-generators
nixos-install-tools
nixos-option
nixos-render-docs
nixpkgs-hammering
nixpkgs-lint
npins
rnix-hashes
statix
zon2nix
web-devmode.nix