1 { lib, stdenv, fetchFromGitHub, cmake, aws-c-cal, aws-c-common, nix, s2n-tls, Security }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-ZeogbjgpbqdCioLeb34CRol1Fa5BJOloAxxgE50yfQs=";
14 nativeBuildInputs = [ cmake ];
16 buildInputs = [ aws-c-cal aws-c-common s2n-tls ];
17 propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
20 "-DBUILD_SHARED_LIBS=ON"
28 description = "AWS SDK for C module for IO and TLS";
29 homepage = "https://github.com/awslabs/aws-c-io";
30 license = licenses.asl20;
31 platforms = platforms.unix;
32 maintainers = with maintainers; [ orivej ];