diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-07-24 21:48:48 -0700 |
---|---|---|
committer | Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com> | 2023-10-23 08:38:25 +0000 |
commit | 4fc0e3369810899279f0423699e2604e7088ff76 (patch) | |
tree | 798c66b955b89f6592fa8009dd382da10d19dd2f /pkgs/build-support/rust | |
parent | 3bd3809d0e5cb8ada73d0ee856b6ad9121cc907e (diff) | |
download | nixpkgs-4fc0e3369810899279f0423699e2604e7088ff76.tar nixpkgs-4fc0e3369810899279f0423699e2604e7088ff76.tar.gz nixpkgs-4fc0e3369810899279f0423699e2604e7088ff76.tar.bz2 nixpkgs-4fc0e3369810899279f0423699e2604e7088ff76.tar.lz nixpkgs-4fc0e3369810899279f0423699e2604e7088ff76.tar.xz nixpkgs-4fc0e3369810899279f0423699e2604e7088ff76.tar.zst nixpkgs-4fc0e3369810899279f0423699e2604e7088ff76.zip |
buildRustPackage: add isMips64n32 to badPlatforms
Rust is not yet able to target the n32 ABI on mips64. Let's add `isMips64n32` to the `meta.badPlatforms` of all derivations created by buildRustPackage. I use this to automatically detect which packages on my system can be built for n32 (almost all of them) and build those using n32, and the few packages (mainly those that depend on boost or rust) that can't for n64.
Diffstat (limited to 'pkgs/build-support/rust')
-rw-r--r-- | pkgs/build-support/rust/build-rust-package/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/rust/build-rust-package/default.nix b/pkgs/build-support/rust/build-rust-package/default.nix index da868861e2c..18d8ca56fd1 100644 --- a/pkgs/build-support/rust/build-rust-package/default.nix +++ b/pkgs/build-support/rust/build-rust-package/default.nix @@ -161,5 +161,9 @@ stdenv.mkDerivation ((removeAttrs args [ "depsExtraArgs" "cargoUpdateHook" "carg "x86_64-redox" "wasm32-wasi" ]; + badPlatforms = [ + # Rust is currently unable to target the n32 ABI + lib.systems.inspect.patterns.isMips64n32 + ]; } // meta; }) |