From 305dc2a199a8a9571b22d26fc67420c9e5fb8524 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 20 Feb 2020 18:37:40 +0100 Subject: [PATCH] ocamlPackages.cohttp_p4: remove at 0.19.3 --- .../ocaml-modules/cohttp/0.19.3.nix | 30 ------------------- pkgs/top-level/ocaml-packages.nix | 10 +------ 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 pkgs/development/ocaml-modules/cohttp/0.19.3.nix diff --git a/pkgs/development/ocaml-modules/cohttp/0.19.3.nix b/pkgs/development/ocaml-modules/cohttp/0.19.3.nix deleted file mode 100644 index 24547a03a086..000000000000 --- a/pkgs/development/ocaml-modules/cohttp/0.19.3.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ stdenv, buildOcaml, fetchurl, ocaml, cmdliner, re, uri_p4, fieldslib_p4 -, sexplib_p4, conduit , stringext, base64, magic-mime, ounit, alcotest -, asyncSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02" -, lwt ? null, async_p4 ? null, async_ssl_p4 ? null -}: - -buildOcaml rec { - name = "cohttp"; - version = "0.19.3"; - - minimumSupportedOcamlVersion = "4.01"; - - src = fetchurl { - url = "https://github.com/mirage/ocaml-cohttp/archive/v${version}.tar.gz"; - sha256 = "1nrzpd4h52c1hnzcgsz462676saj9zss708ng001h54dglk8i1iv"; - }; - - buildInputs = [ alcotest cmdliner conduit magic-mime ounit lwt ] - ++ stdenv.lib.optionals asyncSupport [ async_p4 async_ssl_p4 ]; - propagatedBuildInputs = [ re stringext uri_p4 fieldslib_p4 sexplib_p4 base64 ]; - - buildFlags = [ "PREFIX=$(out)" ]; - - meta = with stdenv.lib; { - homepage = https://github.com/mirage/ocaml-cohttp; - description = "Very lightweight HTTP server using Lwt or Async"; - license = licenses.mit; - maintainers = [ maintainers.ericbmerritt ]; - }; -} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index d3f0d620fdec..72d41621c235 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -154,15 +154,7 @@ let cmdliner = callPackage ../development/ocaml-modules/cmdliner { }; - cohttp_p4 = callPackage ../development/ocaml-modules/cohttp/0.19.3.nix { - base64 = base64_2; - lwt = lwt2; - }; - - cohttp = - if lib.versionOlder "4.03" ocaml.version - then callPackage ../development/ocaml-modules/cohttp { } - else cohttp_p4; + cohttp = callPackage ../development/ocaml-modules/cohttp { }; cohttp-lwt = callPackage ../development/ocaml-modules/cohttp/lwt.nix { };