ocamlPackages.curl(_lwt): init at 0.10.0, mark ocurl as deprecated

This commit is contained in:
Volker Diels-Grabsch
2026-01-16 14:24:00 +01:00
parent 154d55d786
commit 0ec268bb40
4 changed files with 62 additions and 2 deletions
@@ -0,0 +1,34 @@
{
buildDunePackage,
pkg-config,
dune-configurator,
fetchurl,
lib,
curl,
}:
buildDunePackage (finalAttrs: {
pname = "curl";
version = "0.10.0";
minimalOCamlVersion = "4.11";
src = fetchurl {
url = "https://github.com/ygrek/ocurl/releases/download/${finalAttrs.version}/curl-${finalAttrs.version}.tbz";
hash = "sha256-wU4hX9p/lCkqdY2a6Q97y8IVZMkZGQBkAR/M3PehKRQ=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [
curl
];
checkInputs = [ ];
doCheck = true;
meta = {
description = "Bindings to libcurl";
homepage = "https://ygrek.org/p/ocurl/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vog ];
};
})
@@ -0,0 +1,23 @@
{
buildDunePackage,
curl,
lib,
lwt,
}:
buildDunePackage (finalAttrs: {
pname = "curl_lwt";
inherit (curl) version src;
propagatedBuildInputs = [
curl
lwt
];
checkInputs = [ ];
doCheck = true;
meta = curl.meta // {
description = "Bindings to libcurl (lwt variant)";
};
})
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
createFindlibDestdir = true;
meta = {
description = "OCaml bindings to libcurl";
description = "OCaml bindings to libcurl (deprecated)";
license = lib.licenses.mit;
homepage = "http://ygrek.org.ua/p/ocurl/";
maintainers = with lib.maintainers; [
+4 -1
View File
@@ -358,6 +358,9 @@ let
cudf = callPackage ../development/ocaml-modules/cudf { };
curl = callPackage ../development/ocaml-modules/curl { inherit (pkgs) curl; };
curl_lwt = callPackage ../development/ocaml-modules/curl/lwt.nix { };
curly = callPackage ../development/ocaml-modules/curly {
inherit (pkgs) curl;
};
@@ -1606,7 +1609,7 @@ let
octavius = callPackage ../development/ocaml-modules/octavius { };
ocurl = callPackage ../development/ocaml-modules/ocurl { };
ocurl = callPackage ../development/ocaml-modules/ocurl { inherit (pkgs) curl; };
odate = callPackage ../development/ocaml-modules/odate { };