diff options
author | Fabián Heredia Montiel <fabianhjr@protonmail.com> | 2023-10-08 10:14:51 -0600 |
---|---|---|
committer | Fabián Heredia Montiel <fabianhjr@protonmail.com> | 2023-10-08 10:14:51 -0600 |
commit | 2f0e87732c21a724de9523b0f92b36cd6613ff26 (patch) | |
tree | 6073f22ebf989648903d9cea063009502ccd42bf /pkgs/build-support | |
parent | 0b4a97a07f72bcf265034e5e2d95d6fa02e694a7 (diff) | |
parent | 0b39eeda969696c28c5c858196b52661db51f9e4 (diff) |
Merge remote-tracking branch 'origin/master' into staging-next
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/rust/build-rust-crate/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/rust/build-rust-crate/default.nix b/pkgs/build-support/rust/build-rust-crate/default.nix index f6079b7316d61..4e3e2045e8ec4 100644 --- a/pkgs/build-support/rust/build-rust-crate/default.nix +++ b/pkgs/build-support/rust/build-rust-crate/default.nix @@ -353,6 +353,10 @@ crate_: lib.makeOverridable extraRustcOpts buildTests codegenUnits; }; dontStrip = !release; + + # We need to preserve metadata in .rlib, which might get stripped on macOS. See https://github.com/NixOS/nixpkgs/issues/218712 + stripExclude = [ "*.rlib" ]; + installPhase = installCrate crateName metadata buildTests; # depending on the test setting we are either producing something with bins |