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";
|
sourceRoot = "source/c";
|
||||||
|
|
||||||
|
nativeBuildInputs = lib.optionals stdenv.cc.isClang [
|
||||||
|
stdenv.cc.cc.libllvm.out
|
||||||
|
];
|
||||||
|
|
||||||
|
makeFlags = lib.optionals stdenv.cc.isClang [ "AR=llvm-ar" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
@ -32,7 +38,6 @@ stdenv.mkDerivation rec {
|
|||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ mcbeth AndersonTorres ];
|
maintainers = with maintainers; [ mcbeth AndersonTorres ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
broken = stdenv.isDarwin;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
# TODO: build the other languages
|
# TODO: build the other languages
|
||||||
|
Loading…
Reference in New Issue
Block a user