ocamlPackages.ocurl: 0.9.1 -> 0.9.2

This commit is contained in:
Daniel Olsen 2022-06-08 15:20:35 +02:00
parent 592f58a190
commit b64a90b182

View file

@ -1,21 +1,18 @@
{ stdenv, lib, pkg-config, ocaml, findlib, fetchurl, curl, ncurses, lwt }: { lib, stdenv, fetchurl, pkg-config, ocaml, findlib, curl, lwt, lwt_ppx }:
if lib.versionOlder ocaml.version "4.04"
if lib.versionOlder ocaml.version "4.02"
then throw "ocurl is not available for OCaml ${ocaml.version}" then throw "ocurl is not available for OCaml ${ocaml.version}"
else else
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ocurl"; pname = "ocurl";
version = "0.9.1"; version = "0.9.2";
src = fetchurl { src = fetchurl {
url = "http://ygrek.org.ua/p/release/ocurl/ocurl-${version}.tar.gz"; url = "https://github.com/ygrek/ocurl/releases/download/${version}/ocurl-${version}.tar.gz";
sha256 = "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6"; sha256 = "sha256-4DWXGMh02s1VwLWW5d7h0jtMOUubWmBPGm1hghfWd2M=";
}; };
nativeBuildInputs = [ pkg-config ocaml findlib ]; nativeBuildInputs = [ pkg-config ocaml findlib ];
buildInputs = [ ncurses ]; propagatedBuildInputs = [ curl lwt lwt_ppx ];
propagatedBuildInputs = [ curl lwt ];
strictDeps = true; strictDeps = true;
@ -24,7 +21,7 @@ stdenv.mkDerivation rec {
description = "OCaml bindings to libcurl"; description = "OCaml bindings to libcurl";
license = lib.licenses.mit; license = lib.licenses.mit;
homepage = "http://ygrek.org.ua/p/ocurl/"; homepage = "http://ygrek.org.ua/p/ocurl/";
maintainers = with lib.maintainers; [ bennofs ]; maintainers = with lib.maintainers; [ dandellion bennofs ];
platforms = ocaml.meta.platforms or [ ]; platforms = ocaml.meta.platforms or [ ];
}; };
} }