Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s2n-tls: split dev output to reduce Nix closure #125240

Merged
merged 1 commit into from
Jun 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/development/libraries/aws-c-io/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ stdenv.mkDerivation rec {

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 ];

cmakeFlags = [
Expand Down
12 changes: 11 additions & 1 deletion pkgs/development/libraries/s2n-tls/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,22 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ];

propagatedBuildInputs = [ openssl ]; # s2n-config has find_dependency(LibCrypto).
outputs = [ "out" "dev"];

buildInputs = [ openssl ]; # s2n-config has find_dependency(LibCrypto).

cmakeFlags = [
"-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; {
description = "C99 implementation of the TLS/SSL protocols";
homepage = "https://github.com/aws/s2n-tls";
Expand Down