nixpkgs/pkgs/development/libraries/boringssl/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2016-03-09 11:26:18 +00:00
{ stdenv, fetchgit, cmake, perl, go }:
# reference: https://boringssl.googlesource.com/boringssl/+/2661/BUILDING.md
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "boringssl";
2020-04-08 15:42:16 +01:00
version = "2019-12-04";
src = fetchgit {
url = "https://boringssl.googlesource.com/boringssl";
2020-04-08 15:42:16 +01:00
rev = "243b5cc9e33979ae2afa79eaa4e4c8d59db161d4";
sha256 = "1ak27dln0zqy2vj4llqsb99g03sk0sg25wlp09b58cymrh3gccvl";
};
2020-04-08 15:42:16 +01:00
nativeBuildInputs = [ cmake perl go ];
enableParallelBuilding = true;
makeFlags = [ "GOCACHE=$(TMPDIR)/go-cache" ];
2019-02-28 01:46:32 +00:00
installPhase = ''
2020-04-08 15:42:16 +01:00
mkdir -p $bin/bin $out/include $out/lib
2020-04-08 15:42:16 +01:00
mv tool/bssl $bin/bin
mv ssl/libssl.a $out/lib
mv crypto/libcrypto.a $out/lib
mv decrepit/libdecrepit.a $out/lib
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; {
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 ];
};
}