2016-03-09 12:26:18 +01:00
|
|
|
{ stdenv, fetchgit, cmake, perl, go }:
|
2014-08-20 08:23:40 +02:00
|
|
|
|
2017-07-25 01:57:19 +02:00
|
|
|
# reference: https://boringssl.googlesource.com/boringssl/+/2661/BUILDING.md
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "boringssl";
|
2017-07-25 01:57:19 +02:00
|
|
|
version = "2017-02-23";
|
2014-08-20 08:23:40 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://boringssl.googlesource.com/boringssl";
|
2017-07-25 01:57:19 +02:00
|
|
|
rev = "be2ee342d3781ddb954f91f8a7e660c6f59e87e5";
|
|
|
|
sha256 = "022zq7wlkhrg6al7drr3555lam3zw5bb10ylf9mznp83s854f975";
|
2014-08-20 08:23:40 +02:00
|
|
|
};
|
|
|
|
|
2016-03-09 12:26:18 +01:00
|
|
|
buildInputs = [ cmake perl go ];
|
2014-08-20 08:23:40 +02:00
|
|
|
enableParallelBuilding = true;
|
2016-08-12 05:15:59 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
2014-08-20 08:23:40 +02:00
|
|
|
|
2019-03-10 22:04:46 +01:00
|
|
|
makeFlags = [ "GOCACHE=$(TMPDIR)/go-cache" ];
|
2019-02-28 02:46:32 +01:00
|
|
|
|
2014-08-20 08:23:40 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/include $out/lib
|
|
|
|
|
2017-07-25 01:57:19 +02:00
|
|
|
mv tool/bssl $out/bin
|
|
|
|
|
|
|
|
mv ssl/libssl.a $out/lib
|
|
|
|
mv crypto/libcrypto.a $out/lib
|
|
|
|
mv decrepit/libdecrepit.a $out/lib
|
|
|
|
|
2014-08-20 08:23:40 +02:00
|
|
|
mv ../include/openssl $out/include
|
|
|
|
'';
|
|
|
|
|
2018-09-30 11:10:34 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-20 08:23:40 +02:00
|
|
|
description = "Free TLS/SSL implementation";
|
|
|
|
homepage = "https://boringssl.googlesource.com";
|
2018-09-30 11:10:34 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.thoughtpolice ];
|
|
|
|
license = with licenses; [ openssl isc mit bsd3 ];
|
2014-08-20 08:23:40 +02:00
|
|
|
};
|
|
|
|
}
|