mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
qrcodegen: use llvm-ar when cc is clang
This fixes the build on Darwin
This commit is contained in:
parent
0e168d159f
commit
64b2501436
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user