nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, cmake, aws-c-cal, aws-c-common, aws-c-io, aws-checksums, nix, s2n-tls, libexecinfo }:
2
3stdenv.mkDerivation rec {
4 pname = "aws-c-event-stream";
5 version = "0.2.20";
6
7 src = fetchFromGitHub {
8 owner = "awslabs";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-UDACkGqTtyLablSzePMmMk4iGpgfdtZU/SEv0RCSFfA=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 buildInputs = [ aws-c-cal aws-c-common aws-c-io aws-checksums s2n-tls ]
17 ++ lib.optional stdenv.hostPlatform.isMusl libexecinfo;
18
19 cmakeFlags = [
20 "-DBUILD_SHARED_LIBS:BOOL=ON"
21 ];
22
23 passthru.tests = {
24 inherit nix;
25 };
26
27 meta = with lib; {
28 description = "C99 implementation of the vnd.amazon.eventstream content-type";
29 homepage = "https://github.com/awslabs/aws-c-event-stream";
30 license = licenses.asl20;
31 platforms = platforms.unix;
32 maintainers = with maintainers; [ orivej eelco ];
33 };
34}