s2n-tls: split dev output to reduce Nix closure
This commit is contained in:
parent
13f10e9fe8
commit
504c577315
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
buildInputs = [ aws-c-cal aws-c-common s2n-tls];
|
buildInputs = [ aws-c-cal aws-c-common s2n-tls ];
|
||||||
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
|
|
|
@ -13,12 +13,22 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ openssl ]; # s2n-config has find_dependency(LibCrypto).
|
outputs = [ "out" "dev"];
|
||||||
|
|
||||||
|
buildInputs = [ openssl ]; # s2n-config has find_dependency(LibCrypto).
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
|
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ openssl ]; # s2n-config has find_dependency(LibCrypto).
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
substituteInPlace $out/lib/s2n/cmake/shared/s2n-targets.cmake \
|
||||||
|
--replace 'INTERFACE_INCLUDE_DIRECTORIES "''${_IMPORT_PREFIX}/include"' 'INTERFACE_INCLUDE_DIRECTORIES ""'
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "C99 implementation of the TLS/SSL protocols";
|
description = "C99 implementation of the TLS/SSL protocols";
|
||||||
homepage = "https://github.com/aws/s2n-tls";
|
homepage = "https://github.com/aws/s2n-tls";
|
||||||
|
|
Loading…
Reference in a new issue