1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
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-output-monitor: 2.1.2 -> 2.1.3 2024-07-28 21:38:18 +02:00
nix-query-tree-viewer
nix-script
nixci nixci: add rsrohitsingh682 as a maintainer 2024-07-25 13:05:04 +05:30
nixdoc
nixel
nixos-generators
nixos-install-tools
nixos-option treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
nixos-render-docs treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
nixpkgs-hammering
nixpkgs-lint
npins
rnix-hashes
statix
zon2nix
web-devmode.nix web-devmode: call as package 2024-07-26 13:43:59 -07:00