Commit Graph

3 Commits

Author SHA1 Message Date
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
xrelkd
341ed52eee
sn0int: install shell completions 2024-02-24 23:08:46 +08:00
xrelkd
5b23a9624a
sn0int: migrate to by-name 2024-02-24 23:08:45 +08:00