about summary refs log tree commit diff
path: root/pkgs/servers/ldap/lldap/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/ldap/lldap/default.nix')
-rw-r--r--pkgs/servers/ldap/lldap/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/servers/ldap/lldap/default.nix b/pkgs/servers/ldap/lldap/default.nix
index df4ec6aa5190d..7db37e57c2d2b 100644
--- a/pkgs/servers/ldap/lldap/default.nix
+++ b/pkgs/servers/ldap/lldap/default.nix
@@ -5,6 +5,7 @@
 , nixosTests
 , rustPlatform
 , rustc
+, stdenv
 , wasm-bindgen-cli
 , wasm-pack
 , which
@@ -48,7 +49,7 @@ let
     ];
 
     buildPhase = ''
-      HOME=`pwd` RUSTFLAGS="-C linker=lld" ./app/build.sh
+      HOME=`pwd` ./app/build.sh
     '';
 
     installPhase = ''
@@ -84,6 +85,9 @@ in rustPlatform.buildRustPackage (commonDerivationAttrs // {
     changelog = "https://github.com/lldap/lldap/blob/v${lldap.version}/CHANGELOG.md";
     license = licenses.gpl3Only;
     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;
     maintainers = with maintainers; [ bendlas ];
     mainProgram = "lldap";
   };