2016-03-09 11:26:18 +00:00
|
|
|
{ stdenv, fetchgit, cmake, perl, go }:
|
2014-08-20 07:23:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "boringssl-${version}";
|
2016-03-09 11:26:18 +00:00
|
|
|
version = "2016-03-08";
|
2014-08-20 07:23:40 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://boringssl.googlesource.com/boringssl";
|
2016-03-09 11:26:18 +00:00
|
|
|
rev = "bfb38b1a3c5e37d43188bbd02365a87bebc8d122";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "0bm7vqg3bk716xmw2af99p44zizfhknq9z3cphf7klfdrr7ibqm5";
|
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
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/include $out/lib
|
|
|
|
|
|
|
|
mv tool/bssl $out/bin
|
|
|
|
mv ssl/libssl.a $out/lib
|
|
|
|
mv ../include/openssl $out/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Free TLS/SSL implementation";
|
|
|
|
homepage = "https://boringssl.googlesource.com";
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|