tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
bearssl: fix cross
Alyssa Ross
4 years ago
ca80035f
8da58db5
+8
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
bearssl
default.nix
+8
-2
pkgs/development/libraries/bearssl/default.nix
···
13
14
enableParallelBuilding = true;
15
0
0
0
0
0
0
0
16
installPhase = ''
17
runHook preInstall
18
install -D build/brssl $bin/brssl
19
install -D build/testcrypto $bin/testcrypto
20
-
install -Dm644 build/libbearssl.so $lib/lib/libbearssl.so
21
-
install -Dm644 build/libbearssl.a $lib/lib/libbearssl.a
22
install -Dm644 -t $dev/include inc/*.h
23
touch $out
24
runHook postInstall
···
13
14
enableParallelBuilding = true;
15
16
+
makeFlags = [
17
+
"AR=${stdenv.cc.targetPrefix}ar"
18
+
"CC=${stdenv.cc.targetPrefix}cc"
19
+
"LD=${stdenv.cc.targetPrefix}cc"
20
+
"LDDLL=${stdenv.cc.targetPrefix}cc"
21
+
] ++ lib.optional stdenv.hostPlatform.isStatic "DLL=no";
22
+
23
installPhase = ''
24
runHook preInstall
25
install -D build/brssl $bin/brssl
26
install -D build/testcrypto $bin/testcrypto
27
+
install -Dm644 -t $lib/lib build/libbearssl.*
0
28
install -Dm644 -t $dev/include inc/*.h
29
touch $out
30
runHook postInstall