nixpkgs/pkgs/development/ocaml-modules/ocurl/default.nix

25 lines
765 B
Nix
Raw Normal View History

2017-12-03 10:27:30 +00:00
{ stdenv, pkgconfig, ocaml, findlib, fetchurl, curl, ncurses }:
2015-01-25 21:08:33 +00:00
if stdenv.lib.versionOlder ocaml.version "4.02"
then throw "ocurl is not available for OCaml ${ocaml.version}"
else
2015-01-25 21:08:33 +00:00
stdenv.mkDerivation rec {
name = "ocurl-0.8.2";
2015-01-25 21:08:33 +00:00
src = fetchurl {
2017-12-03 10:27:30 +00:00
url = "http://ygrek.org.ua/p/release/ocurl/${name}.tar.gz";
sha256 = "1ax3xdlzgb1zg7d0wr9nwgmh6a45a764m0wk8p6mx07ad94hz0q9";
2015-01-25 21:08:33 +00:00
};
2017-12-03 10:27:30 +00:00
buildInputs = [ pkgconfig ocaml findlib ncurses ];
propagatedBuildInputs = [ curl ];
2015-01-25 21:08:33 +00:00
createFindlibDestdir = true;
meta = {
description = "OCaml bindings to libcurl";
2017-12-03 10:27:30 +00:00
license = stdenv.lib.licenses.mit;
homepage = "http://ygrek.org.ua/p/ocurl/";
2015-01-25 21:08:33 +00:00
maintainers = with stdenv.lib.maintainers; [ bennofs ];
platforms = ocaml.meta.platforms or [];
2015-01-25 21:08:33 +00:00
};
}