Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / aws-c-event-stream / default.nix
blob6b3c8af43f50c2b694780ee4deb2b610c288a369
1 { lib, stdenv, fetchFromGitHub, cmake, aws-c-cal, aws-c-common, aws-c-io, aws-checksums, nix, s2n-tls, libexecinfo }:
3 stdenv.mkDerivation rec {
4   pname = "aws-c-event-stream";
5   version = "0.3.1";
7   src = fetchFromGitHub {
8     owner = "awslabs";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-2MPTr1vSUPuemdlQIalZTp6eGXJl3Xr1eUEnZjikBzg=";
12   };
14   nativeBuildInputs = [ cmake ];
16   buildInputs = [ aws-c-cal aws-c-common aws-c-io aws-checksums s2n-tls ]
17     ++ lib.optional stdenv.hostPlatform.isMusl libexecinfo;
19   cmakeFlags = [
20     "-DBUILD_SHARED_LIBS:BOOL=ON"
21   ];
23   passthru.tests = {
24     inherit nix;
25   };
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   };