summary refs log tree commit diff
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2023-06-14 12:59:56 -0400
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-06-22 08:59:27 -0300
commit64b25014367bae25dc745324cf2d3682154a8556 (patch)
tree01e3498b131561c26f1a4433ad766019795664c4
parent0e168d159ffd3107a068102210d2fad777d7a636 (diff)
downloadnixpkgs-64b25014367bae25dc745324cf2d3682154a8556.tar
nixpkgs-64b25014367bae25dc745324cf2d3682154a8556.tar.gz
nixpkgs-64b25014367bae25dc745324cf2d3682154a8556.tar.bz2
nixpkgs-64b25014367bae25dc745324cf2d3682154a8556.tar.lz
nixpkgs-64b25014367bae25dc745324cf2d3682154a8556.tar.xz
nixpkgs-64b25014367bae25dc745324cf2d3682154a8556.tar.zst
nixpkgs-64b25014367bae25dc745324cf2d3682154a8556.zip
qrcodegen: use llvm-ar when cc is clang
This fixes the build on Darwin
-rw-r--r--pkgs/development/libraries/qrcodegen/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/libraries/qrcodegen/default.nix b/pkgs/development/libraries/qrcodegen/default.nix
index 6212f6f53b9..eeb830d3fec 100644
--- a/pkgs/development/libraries/qrcodegen/default.nix
+++ b/pkgs/development/libraries/qrcodegen/default.nix
@@ -16,6 +16,12 @@ stdenv.mkDerivation rec {
 
   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
 
@@ -32,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