mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #141244 from alyssais/bearssl-cross
This commit is contained in:
commit
b28fe2e014
1 changed files with 8 additions and 2 deletions
|
@ -13,12 +13,18 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
makeFlags = [
|
||||
"AR=${stdenv.cc.targetPrefix}ar"
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
"LD=${stdenv.cc.targetPrefix}cc"
|
||||
"LDDLL=${stdenv.cc.targetPrefix}cc"
|
||||
] ++ lib.optional stdenv.hostPlatform.isStatic "DLL=no";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D build/brssl $bin/brssl
|
||||
install -D build/testcrypto $bin/testcrypto
|
||||
install -Dm644 build/libbearssl.so $lib/lib/libbearssl.so
|
||||
install -Dm644 build/libbearssl.a $lib/lib/libbearssl.a
|
||||
install -Dm644 -t $lib/lib build/libbearssl.*
|
||||
install -Dm644 -t $dev/include inc/*.h
|
||||
touch $out
|
||||
runHook postInstall
|
||||
|
|
Loading…
Reference in a new issue