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 17 sourceRoot = "source/c"; 18 19 installPhase = '' 20 runHook preInstall 21 ··· 32 license = licenses.mit; 33 maintainers = with maintainers; [ mcbeth AndersonTorres ]; 34 platforms = platforms.unix; 35 - broken = stdenv.isDarwin; 36 }; 37 } 38 # TODO: build the other languages
··· 16 17 sourceRoot = "source/c"; 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 + 25 installPhase = '' 26 runHook preInstall 27 ··· 38 license = licenses.mit; 39 maintainers = with maintainers; [ mcbeth AndersonTorres ]; 40 platforms = platforms.unix; 41 }; 42 } 43 # TODO: build the other languages