linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / aws-c-event-stream / default.nix
blobb6468a8dae0ad6060e7b40c1d0e8201b7a407963
1 { lib, stdenv, fetchFromGitHub, cmake, aws-c-cal, aws-c-common, aws-c-io, aws-checksums, s2n-tls, libexecinfo }:
3 stdenv.mkDerivation rec {
4   pname = "aws-c-event-stream";
5   version = "0.2.7";
7   src = fetchFromGitHub {
8     owner = "awslabs";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-8Du9Ib3MhPcgetBIi0k1NboaXxZh7iPNhDe7197JnHc=";
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     "-DCMAKE_MODULE_PATH=${aws-c-common}/lib/cmake"
22   ];
24   meta = with lib; {
25     description = "C99 implementation of the vnd.amazon.eventstream content-type";
26     homepage = "https://github.com/awslabs/aws-c-event-stream";
27     license = licenses.asl20;
28     platforms = platforms.unix;
29     maintainers = with maintainers; [ orivej eelco ];
30   };