diff options
author | Eric Merritt <eric@afiniate.com> | 2015-05-15 09:36:02 -0500 |
---|---|---|
committer | Eric Merritt <eric@afiniate.com> | 2015-05-24 12:33:20 -0700 |
commit | 745bb72050b0aa9df57533ed0c809164672ee403 (patch) | |
tree | ef465e5c6a8863cdffbbf7c465f430167ff888bc /pkgs/development/ocaml-modules | |
parent | 1c2fcf411503155da7d9ae0eee66f1894f4c511f (diff) | |
download | nixlib-745bb72050b0aa9df57533ed0c809164672ee403.tar nixlib-745bb72050b0aa9df57533ed0c809164672ee403.tar.gz nixlib-745bb72050b0aa9df57533ed0c809164672ee403.tar.bz2 nixlib-745bb72050b0aa9df57533ed0c809164672ee403.tar.lz nixlib-745bb72050b0aa9df57533ed0c809164672ee403.tar.xz nixlib-745bb72050b0aa9df57533ed0c809164672ee403.tar.zst nixlib-745bb72050b0aa9df57533ed0c809164672ee403.zip |
ocaml-conduit: add initial version (0.8.3) to the system
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/conduit/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/conduit/default.nix b/pkgs/development/ocaml-modules/conduit/default.nix new file mode 100644 index 000000000000..dbb83f4c8cf0 --- /dev/null +++ b/pkgs/development/ocaml-modules/conduit/default.nix @@ -0,0 +1,24 @@ +{stdenv, buildOcaml, fetchurl, sexplib, stringext, uri, cstruct, ipaddr, + async ? null, async_ssl ? null, lwt ? null}: + +buildOcaml rec { + name = "conduit"; + version = "0.8.3"; + + src = fetchurl { + url = "https://github.com/mirage/ocaml-conduit/archive/v${version}.tar.gz"; + sha256 = "5cf1a46aa0254345e5143feebe6b54bdef96314e9987f44e69f24618d620faa1"; + }; + + propagatedBuildInputs = ([ sexplib stringext uri cstruct ipaddr ] + ++ stdenv.lib.optional (lwt != null) lwt + ++ stdenv.lib.optional (async != null) async + ++ stdenv.lib.optional (async_ssl != null) async_ssl); + + meta = with stdenv.lib; { + homepage = https://github.com/mirage/ocaml-conduit; + description = "Resolve URIs into communication channels for Async or Lwt "; + license = licenses.mit; + maintainers = [ maintainers.ericbmerritt ]; + }; +} |