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

40 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 21:52:01 +00:00
stdenv.mkDerivation {
pname = "boringssl";
version = "2017-02-23";
src = fetchgit {
url = "https://boringssl.googlesource.com/boringssl";
rev = "be2ee342d3781ddb954f91f8a7e660c6f59e87e5";
sha256 = "022zq7wlkhrg6al7drr3555lam3zw5bb10ylf9mznp83s854f975";
};
2016-03-09 11:26:18 +00:00
buildInputs = [ cmake perl go ];
enableParallelBuilding = true;
NIX_CFLAGS_COMPILE = "-Wno-error";
makeFlags = [ "GOCACHE=$(TMPDIR)/go-cache" ];
2019-02-28 01:46:32 +00:00
installPhase = ''
mkdir -p $out/bin $out/include $out/lib
mv tool/bssl $out/bin
mv ssl/libssl.a $out/lib
mv crypto/libcrypto.a $out/lib
mv decrepit/libdecrepit.a $out/lib
mv ../include/openssl $out/include
'';
2018-09-30 09:10:34 +00:00
meta = with stdenv.lib; {
description = "Free TLS/SSL implementation";
homepage = "https://boringssl.googlesource.com";
2018-09-30 09:10:34 +00:00
platforms = platforms.all;
maintainers = [ maintainers.thoughtpolice ];
license = with licenses; [ openssl isc mit bsd3 ];
};
}