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";
|
2020-04-08 15:42:16 +01:00
|
|
|
version = "2019-12-04";
|
2014-08-20 07:23:40 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://boringssl.googlesource.com/boringssl";
|
2020-04-08 15:42:16 +01:00
|
|
|
rev = "243b5cc9e33979ae2afa79eaa4e4c8d59db161d4";
|
|
|
|
sha256 = "1ak27dln0zqy2vj4llqsb99g03sk0sg25wlp09b58cymrh3gccvl";
|
2014-08-20 07:23:40 +01:00
|
|
|
};
|
|
|
|
|
2020-04-08 15:42:16 +01:00
|
|
|
nativeBuildInputs = [ cmake perl go ];
|
2014-08-20 07:23:40 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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 = ''
|
2020-04-08 15:42:16 +01:00
|
|
|
mkdir -p $bin/bin $out/include $out/lib
|
2014-08-20 07:23:40 +01:00
|
|
|
|
2020-04-08 15:42:16 +01:00
|
|
|
mv tool/bssl $bin/bin
|
2017-07-25 00:57:19 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2020-04-08 15:42:16 +01:00
|
|
|
outputs = [ "out" "bin" ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|