diff options
author | Julien Lepiller <julien@lepiller.eu> | 2016-12-30 12:36:12 +0100 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2017-01-17 23:22:07 +0100 |
commit | fd6e260ef77c4a520de8adccb2a905383725908a (patch) | |
tree | a604b696b6dafcc4f7342d688624bd84efaa71ac /gnu | |
parent | 800ab1fb16cb963ac9187acfa43a97dc10daa326 (diff) | |
download | patches-fd6e260ef77c4a520de8adccb2a905383725908a.tar patches-fd6e260ef77c4a520de8adccb2a905383725908a.tar.gz |
gnu: Add ocaml-ocurl.
* gnu/pcakages/ocaml.scm (ocaml-ocurl): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/ocaml.scm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 0f90d9974d..28c6ab34fa 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -1670,3 +1670,29 @@ string values and to directly encode characters in OCaml Buffer.t values.") the JSON data format. It can process JSON text without blocking on IO and without a complete in-memory representation of the data.") (license license:isc))) + +(define-public ocaml-ocurl + (package + (name "ocaml-ocurl") + (version "0.7.9") + (source (origin + (method url-fetch) + (uri (string-append "http://ygrek.org.ua/p/release/ocurl/ocurl-" + version ".tar.gz")) + (sha256 + (base32 + "0pm6nm33wi0p9h765k6zb94ljpknryam4qd1hmb2rsk2y0y1181n")))) + (build-system ocaml-build-system) + (arguments `(#:phases + (modify-phases %standard-phases + (add-before 'configure 'fix-/bin/sh + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "configure" + (("-/bin/sh") (string-append "-" (which "bash"))))))))) + (native-inputs `(("pkg-config" ,pkg-config))) + (inputs `(("curl" ,curl))) + (home-page "http://ocurl.forge.ocamlcore.org/") + (synopsis "OCaml bindings for libcurl") + (description "Client-side URL transfer library, supporting HTTP and a +multitude of other network protocols (FTP/SMTP/RTSP/etc).") + (license license:isc))) |