1 { lib, stdenv, fetchFromGitHub, cmake, aws-c-cal, aws-c-common, s2n-tls, Security }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "0lx72p9xmmnjkz4zkfb1lz0ibw0jsy52qpydhvn56bq85nv44rwx";
14 nativeBuildInputs = [ cmake ];
16 buildInputs = [ aws-c-cal aws-c-common s2n-tls] ++ lib.optionals stdenv.isDarwin [ Security ];
19 "-DBUILD_SHARED_LIBS=ON"
20 "-DCMAKE_MODULE_PATH=${aws-c-common}/lib/cmake"
23 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-error";
26 description = "AWS SDK for C module for IO and TLS";
27 homepage = "https://github.com/awslabs/aws-c-io";
28 license = licenses.asl20;
29 platforms = platforms.unix;
30 maintainers = with maintainers; [ orivej ];