summary refs log tree commit diff
path: root/pkgs/development/libraries/neon
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-10-15 10:22:28 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-10-15 10:22:28 -0700
commit8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36 (patch)
tree90013bf1e284372e7de0ad6b3715dc5a0ea926d1 /pkgs/development/libraries/neon
parent1283e3da5d0bc4657677d40fa3cb117b66489ee5 (diff)
parent62e676b9598d2638e846761160082f6fec392ffe (diff)
downloadnixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar
nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.gz
nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.bz2
nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.lz
nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.xz
nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.zst
nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.zip
Merge branch 'master.upstream' into staging.upstream
Diffstat (limited to 'pkgs/development/libraries/neon')
-rw-r--r--pkgs/development/libraries/neon/0.29.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/libraries/neon/0.29.nix b/pkgs/development/libraries/neon/0.29.nix
new file mode 100644
index 00000000000..1be9f453bb4
--- /dev/null
+++ b/pkgs/development/libraries/neon/0.29.nix
@@ -0,0 +1,44 @@
+{ stdenv, fetchurl, libxml2, pkgconfig
+, compressionSupport ? true, zlib ? null
+, sslSupport ? true, openssl ? null
+, static ? false
+, shared ? true
+}:
+
+assert compressionSupport -> zlib != null;
+assert sslSupport -> openssl != null;
+assert static || shared;
+
+let
+   inherit (stdenv.lib) optionals;
+in
+
+stdenv.mkDerivation rec {
+  version = "0.29.6";
+  name = "neon-${version}";
+
+  src = fetchurl {
+    url = "http://www.webdav.org/neon/${name}.tar.gz";
+    sha256 = "0hzbjqdx1z8zw0vmbknf159wjsxbcq8ii0wgwkqhxj3dimr0nr4w";
+  };
+
+  patches = optionals stdenv.isDarwin [ ./0.29.6-darwin-fix-configure.patch ];
+
+  buildInputs = [libxml2 pkgconfig openssl]
+    ++ stdenv.lib.optional compressionSupport zlib;
+
+  configureFlags = ''
+    ${if shared then "--enable-shared" else "--disable-shared"}
+    ${if static then "--enable-static" else "--disable-static"}
+    ${if compressionSupport then "--with-zlib" else "--without-zlib"}
+    ${if sslSupport then "--with-ssl" else "--without-ssl"}
+    --enable-shared
+  '';
+
+  passthru = {inherit compressionSupport sslSupport;};
+
+  meta = {
+    description = "An HTTP and WebDAV client library";
+    homepage = http://www.webdav.org/neon/;
+  };
+}