ocamlPackages.conduit: 0.10.0 -> 0.15.4

Keeping the old version under attribute conduit_p4.

+62 -24
+26
pkgs/development/ocaml-modules/conduit/0.10.0.nix
···
··· 1 + { stdenv, buildOcaml, fetchurl, ocaml, sexplib_p4, stringext, uri_p4, cstruct, ipaddr_p4 2 + , asyncSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02" 3 + , async_p4 ? null, async_ssl_p4 ? null, lwt ? null 4 + }: 5 + 6 + buildOcaml rec { 7 + name = "conduit"; 8 + version = "0.10.0"; 9 + 10 + src = fetchurl { 11 + url = "https://github.com/mirage/ocaml-conduit/archive/v${version}.tar.gz"; 12 + sha256 = "1jz2skzsyg0axlkk9s6ahfblfrjx599wisyfs0cvn5dik9jqjadh"; 13 + }; 14 + 15 + propagatedBuildInputs = [ sexplib_p4 stringext uri_p4 cstruct ipaddr_p4 ]; 16 + buildInputs = stdenv.lib.optional (lwt != null) lwt 17 + ++ stdenv.lib.optional (asyncSupport && async_p4 != null) async_p4 18 + ++ stdenv.lib.optional (asyncSupport && async_ssl_p4 != null) async_ssl_p4; 19 + 20 + meta = with stdenv.lib; { 21 + homepage = https://github.com/mirage/ocaml-conduit; 22 + description = "Resolve URIs into communication channels for Async or Lwt "; 23 + license = licenses.mit; 24 + maintainers = [ maintainers.ericbmerritt ]; 25 + }; 26 + }
+27 -20
pkgs/development/ocaml-modules/conduit/default.nix
··· 1 - { stdenv, buildOcaml, fetchurl, ocaml, sexplib_p4, stringext, uri_p4, cstruct, ipaddr_p4 2 - , asyncSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02" 3 - , async_p4 ? null, async_ssl_p4 ? null, lwt ? null 4 }: 5 6 - buildOcaml rec { 7 - name = "conduit"; 8 - version = "0.10.0"; 9 10 - src = fetchurl { 11 - url = "https://github.com/mirage/ocaml-conduit/archive/v${version}.tar.gz"; 12 - sha256 = "1jz2skzsyg0axlkk9s6ahfblfrjx599wisyfs0cvn5dik9jqjadh"; 13 - }; 14 15 - propagatedBuildInputs = [ sexplib_p4 stringext uri_p4 cstruct ipaddr_p4 ]; 16 - buildInputs = stdenv.lib.optional (lwt != null) lwt 17 - ++ stdenv.lib.optional (asyncSupport && async_p4 != null) async_p4 18 - ++ stdenv.lib.optional (asyncSupport && async_ssl_p4 != null) async_ssl_p4; 19 20 - meta = with stdenv.lib; { 21 - homepage = https://github.com/mirage/ocaml-conduit; 22 - description = "Resolve URIs into communication channels for Async or Lwt "; 23 - license = licenses.mit; 24 - maintainers = [ maintainers.ericbmerritt ]; 25 - }; 26 }
··· 1 + { stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild 2 + , ppx_driver, ppx_sexp_conv 3 + , ipaddr, uri, logs 4 + , ocaml_lwt ? null 5 + , async ? null, async_ssl ? null 6 + , tls ? null 7 }: 8 9 + stdenv.mkDerivation rec { 10 + version = "0.15.4"; 11 + name = "ocaml${ocaml.version}-conduit-${version}"; 12 13 + src = fetchFromGitHub { 14 + owner = "mirage"; 15 + repo = "ocaml-conduit"; 16 + rev = "v${version}"; 17 + sha256 = "1ya7jqvhl8hc22cid5myf31w5c473imdxjnl9785lavsqj3djjxq"; 18 + }; 19 + 20 + buildInputs = [ ocaml findlib ocamlbuild ppx_driver ppx_sexp_conv 21 + ocaml_lwt async async_ssl tls ]; 22 + propagatedBuildInputs = [ ipaddr uri logs ]; 23 24 + createFindlibDestdir = true; 25 26 + meta = { 27 + description = "Network connection library for TCP and SSL"; 28 + license = stdenv.lib.licenses.isc; 29 + maintainers = [ stdenv.lib.maintainers.vbgl ]; 30 + inherit (src.meta) homepage; 31 + inherit (ocaml.meta) platforms; 32 + }; 33 }
+9 -4
pkgs/top-level/ocaml-packages.nix
··· 114 }; 115 camlimages = camlimages_4_1; 116 117 - conduit = callPackage ../development/ocaml-modules/conduit { 118 - lwt = ocaml_lwt; 119 - }; 120 - 121 biniou = callPackage ../development/ocaml-modules/biniou { }; 122 123 bin_prot_p4 = callPackage ../development/ocaml-modules/bin_prot { }; ··· 135 cohttp = callPackage ../development/ocaml-modules/cohttp { 136 lwt = ocaml_lwt; 137 }; 138 139 config-file = callPackage ../development/ocaml-modules/config-file { }; 140
··· 114 }; 115 camlimages = camlimages_4_1; 116 117 biniou = callPackage ../development/ocaml-modules/biniou { }; 118 119 bin_prot_p4 = callPackage ../development/ocaml-modules/bin_prot { }; ··· 131 cohttp = callPackage ../development/ocaml-modules/cohttp { 132 lwt = ocaml_lwt; 133 }; 134 + 135 + conduit_p4 = callPackage ../development/ocaml-modules/conduit/0.10.0.nix { 136 + lwt = ocaml_lwt; 137 + }; 138 + 139 + conduit = 140 + if lib.versionOlder "4.03" ocaml.version 141 + then callPackage ../development/ocaml-modules/conduit { } 142 + else conduit_p4; 143 144 config-file = callPackage ../development/ocaml-modules/config-file { }; 145