summary refs log tree commit diff
path: root/pkgs/development/libraries/aws-c-http
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2021-09-25 11:33:35 -0700
committerRyan Burns <rtburns@protonmail.com>2021-10-14 10:52:17 -0700
commit1c2ca77d7477cc369d0faa08ee9695d16276c804 (patch)
tree479ef51b4f220238cafcd20c284a4e87fdb6488e /pkgs/development/libraries/aws-c-http
parentff6afebdb398fa601a8a1b3fc68b1417efe2dc5e (diff)
downloadnixpkgs-1c2ca77d7477cc369d0faa08ee9695d16276c804.tar
nixpkgs-1c2ca77d7477cc369d0faa08ee9695d16276c804.tar.gz
nixpkgs-1c2ca77d7477cc369d0faa08ee9695d16276c804.tar.bz2
nixpkgs-1c2ca77d7477cc369d0faa08ee9695d16276c804.tar.lz
nixpkgs-1c2ca77d7477cc369d0faa08ee9695d16276c804.tar.xz
nixpkgs-1c2ca77d7477cc369d0faa08ee9695d16276c804.tar.zst
nixpkgs-1c2ca77d7477cc369d0faa08ee9695d16276c804.zip
aws-c-http: init at 0.6.7
Diffstat (limited to 'pkgs/development/libraries/aws-c-http')
-rw-r--r--pkgs/development/libraries/aws-c-http/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/libraries/aws-c-http/default.nix b/pkgs/development/libraries/aws-c-http/default.nix
new file mode 100644
index 00000000000..0bde86d674b
--- /dev/null
+++ b/pkgs/development/libraries/aws-c-http/default.nix
@@ -0,0 +1,46 @@
+{ lib, stdenv
+, fetchFromGitHub
+, aws-c-cal
+, aws-c-common
+, aws-c-compression
+, aws-c-io
+, cmake
+, s2n-tls
+}:
+
+stdenv.mkDerivation rec {
+  pname = "aws-c-http";
+  version = "0.6.7";
+
+  src = fetchFromGitHub {
+    owner = "awslabs";
+    repo = "aws-c-http";
+    rev = "v${version}";
+    sha256 = "1s06bz6w7355ldyhwjidcpbff7591ch4lwwjcj47a6k2kczdmiz4";
+  };
+
+  nativeBuildInputs = [
+    cmake
+  ];
+
+  buildInputs = [
+    aws-c-cal
+    aws-c-common
+    aws-c-compression
+    aws-c-io
+    s2n-tls
+  ];
+
+  cmakeFlags = [
+    "-DCMAKE_SKIP_BUILD_RPATH=OFF"
+    "-DBUILD_SHARED_LIBS=ON"
+  ];
+
+  meta = with lib; {
+    description = "C99 implementation of the HTTP/1.1 and HTTP/2 specifications";
+    homepage = "https://github.com/awslabs/aws-c-http";
+    license = licenses.asl20;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ r-burns ];
+  };
+}