Commit Graph

13 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
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
aleksana
a9709c299b treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
Paul Meyer
fbe8538aa1 treewide: remove jonringer as package maintainer
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-06-25 09:16:56 +02:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
Jonathan Ringer
19ac081439
nix-template: 0.4.0 -> 0.4.1 2022-12-17 10:09:00 -08:00
Jonathan Ringer
5e13cdfe70
nix-template: 0.3.0 -> 0.4.0 2022-09-10 11:49:44 -07:00
Jonathan Ringer
2085f10ea4
nix-template: 0.2.0 -> 0.3.0 (#169282) 2022-04-19 20:14:06 +02:00
Jonathan Ringer
ed8b1053a6
nix-template: 0.1.4 -> 0.2.0 2021-12-27 22:02:18 -08:00
Jonathan Ringer
2e09265a54
nix-template: 0.1.1 -> 0.1.4 (#130580)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-07-20 13:27:10 +02:00
Jonathan Ringer
70580fdab7
nix-template: 0.1.0 -> 0.1.1 2021-07-11 21:00:22 -07:00
Daniël de Kok
85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00
Jonathan Ringer
da6f02596b
nix-template: init at 0.1.0 2020-08-30 17:50:56 -07:00