about summary refs log tree commit diff
path: root/pkgs/by-name/su
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2024-06-09 07:10:51 +0100
committerAlyssa Ross <hi@alyssa.is>2024-06-09 07:20:18 +0100
commitbf13eca852acddd5e44b5ad9b4ebc0629d612737 (patch)
tree6afcbf83eb66d754d43ac794a1fc502d9cfd45f7 /pkgs/by-name/su
parentddc356c1f074bf2d5c86e890185e6854205252dd (diff)
rustc: disable wasm32 if some gcc options are set
This is a temporary fix to get rustc building again with these
configurations (which notably include the default aarch64-darwin one)
without causing a stdenv rebuild.  The real fix will be to avoid
passing these options through the Clang wrapper when the target is
overridden.

It could be that there are packages that need wasm32-unknown-unknown
beyond those I've marked as broken here — it's impossible to be sure
without a full rebuild.  But this should be most of them.
Diffstat (limited to 'pkgs/by-name/su')
-rw-r--r--pkgs/by-name/su/surrealist/package.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/by-name/su/surrealist/package.nix b/pkgs/by-name/su/surrealist/package.nix
index efd1773dee2f8..3463c7ef3b2e4 100644
--- a/pkgs/by-name/su/surrealist/package.nix
+++ b/pkgs/by-name/su/surrealist/package.nix
@@ -192,5 +192,8 @@ in stdenv.mkDerivation (finalAttrs: {
     mainProgram = "surrealist";
     maintainers = with maintainers; [ frankp ];
     platforms = platforms.linux;
+    # See comment about wasm32-unknown-unknown in rustc.nix.
+    broken = lib.any (a: lib.hasAttr a stdenv.hostPlatform.gcc) [ "cpu" "float-abi" "fpu" ] ||
+      !stdenv.hostPlatform.gcc.thumb or true;
   };
 })