about summary refs log tree commit diff
path: root/pkgs/development/libraries/qrcodegen/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/qrcodegen/default.nix')
-rw-r--r--pkgs/development/libraries/qrcodegen/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/development/libraries/qrcodegen/default.nix b/pkgs/development/libraries/qrcodegen/default.nix
index 856f2f88e832..eeb830d3fec4 100644
--- a/pkgs/development/libraries/qrcodegen/default.nix
+++ b/pkgs/development/libraries/qrcodegen/default.nix
@@ -14,9 +14,13 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-aci5SFBRNRrSub4XVJ2luHNZ2pAUegjgQ6pD9kpkaTY=";
   };
 
-  preBuild = ''
-    cd c/
-  '';
+  sourceRoot = "source/c";
+
+  nativeBuildInputs = lib.optionals stdenv.cc.isClang [
+    stdenv.cc.cc.libllvm.out
+  ];
+
+  makeFlags = lib.optionals stdenv.cc.isClang [ "AR=llvm-ar" ];
 
   installPhase = ''
     runHook preInstall
@@ -34,7 +38,6 @@ stdenv.mkDerivation rec {
     license = licenses.mit;
     maintainers = with maintainers; [ mcbeth AndersonTorres ];
     platforms = platforms.unix;
-    broken = stdenv.isDarwin;
   };
 }
 # TODO: build the other languages