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