git.iko.soy/typeable/nixpkgs
on master help sign in
neon: Re-add version 0.29.6
commit3e5dbb7b782004702b9b3d091a692fd1ef2eb857 authorMatthias Beyer <mail@beyermatthias.de> dateSat 3 Oct 2015, 12:56 (11 years ago) parente0ebb92
2 files changed+49
pkgs/development/libraries/neon/0.29.nix+44 pkgs/top-level/all-packages.nix+5
pkgs/development/libraries/neon/0.29.nixnew file+44
@@ -0,0 +1,44 @@
1+{ stdenv, fetchurl, libxml2, pkgconfig
2+, compressionSupport ? true, zlib ? null
3+, sslSupport ? true, openssl ? null
4+, static ? false
5+, shared ? true
6+}:
7+
8+assert compressionSupport -> zlib != null;
9+assert sslSupport -> openssl != null;
10+assert static || shared;
11+
12+let
13+ inherit (stdenv.lib) optionals;
14+in
15+
16+stdenv.mkDerivation rec {
17+ version = "0.29.6";
18+ name = "neon-${version}";
19+
20+ src = fetchurl {
21+ url = "http://www.webdav.org/neon/${name}.tar.gz";
22+ sha256 = "0hzbjqdx1z8zw0vmbknf159wjsxbcq8ii0wgwkqhxj3dimr0nr4w";
23+ };
24+
25+ patches = optionals stdenv.isDarwin [ ./0.29.6-darwin-fix-configure.patch ];
26+
27+ buildInputs = [libxml2 pkgconfig openssl]
28+ ++ stdenv.lib.optional compressionSupport zlib;
29+
30+ configureFlags = ''
31+ ${if shared then "--enable-shared" else "--disable-shared"}
32+ ${if static then "--enable-static" else "--disable-static"}
33+ ${if compressionSupport then "--with-zlib" else "--without-zlib"}
34+ ${if sslSupport then "--with-ssl" else "--without-ssl"}
35+ --enable-shared
36+ '';
37+
38+ passthru = {inherit compressionSupport sslSupport;};
39+
40+ meta = {
41+ description = "An HTTP and WebDAV client library";
42+ homepage = http://www.webdav.org/neon/;
43+ };
44+}
pkgs/top-level/all-packages.nix+5
@@ -7658,6 +7658,11 @@ let
76587658 sslSupport = true;
76597659 };
76607660
7661+ neon_0_29 = callPackage ../development/libraries/neon/0.29.nix {
7662+ compressionSupport = true;
7663+ sslSupport = true;
7664+ };
7665+
76617666 nethack = callPackage ../games/nethack { };
76627667
76637668 nettle = callPackage ../development/libraries/nettle { };