qrcodegen: use llvm-ar when cc is clang

This fixes the build on Darwin

authored by

Bernardo Meurer and committed by
Anderson Torres
64b25014 0e168d15

+6 -1
+6 -1
pkgs/development/libraries/qrcodegen/default.nix
··· 16 16 17 17 sourceRoot = "source/c"; 18 18 19 + nativeBuildInputs = lib.optionals stdenv.cc.isClang [ 20 + stdenv.cc.cc.libllvm.out 21 + ]; 22 + 23 + makeFlags = lib.optionals stdenv.cc.isClang [ "AR=llvm-ar" ]; 24 + 19 25 installPhase = '' 20 26 runHook preInstall 21 27 ··· 32 38 license = licenses.mit; 33 39 maintainers = with maintainers; [ mcbeth AndersonTorres ]; 34 40 platforms = platforms.unix; 35 - broken = stdenv.isDarwin; 36 41 }; 37 42 } 38 43 # TODO: build the other languages