From da12d8043de14400f50c2ac0b278387044744227 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 4 Jan 2024 21:33:14 +0100 Subject: [PATCH 1/2] ocamlPackages.macaque: remove at 0.7.2 --- .../ocaml-modules/macaque/default.nix | 28 ------------------- pkgs/top-level/ocaml-packages.nix | 2 -- 2 files changed, 30 deletions(-) delete mode 100644 pkgs/development/ocaml-modules/macaque/default.nix diff --git a/pkgs/development/ocaml-modules/macaque/default.nix b/pkgs/development/ocaml-modules/macaque/default.nix deleted file mode 100644 index d47c0c4f11c5..000000000000 --- a/pkgs/development/ocaml-modules/macaque/default.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, pgocaml, camlp4 }: - -stdenv.mkDerivation rec { - pname = "ocaml-macaque"; - version = "0.7.2"; - - src = fetchFromGitHub { - owner = "ocsigen"; - repo = "macaque"; - rev = version; - sha256 = "sha256-W9ZFaINYYtIikKy/ZqdlKeFQSA7DQT9plc3+ZhlSIJI="; - }; - - nativeBuildInputs = [ ocaml findlib ocamlbuild camlp4 ]; - propagatedBuildInputs = [ pgocaml camlp4 ]; - - strictDeps = true; - - createFindlibDestdir = true; - - meta = with lib; { - description = "Macros for Caml Queries"; - homepage = "https://github.com/ocsigen/macaque"; - license = licenses.lgpl2; - platforms = ocaml.meta.platforms or [ ]; - maintainers = with maintainers; [ vbgl ]; - }; -} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 209962a91554..3d793db739e0 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1010,8 +1010,6 @@ let macaddr-sexp = callPackage ../development/ocaml-modules/macaddr/sexp.nix { }; - macaque = callPackage ../development/ocaml-modules/macaque { }; - mad = callPackage ../development/ocaml-modules/mad { }; magic = callPackage ../development/ocaml-modules/magic { }; From dec2122407ff585a2e2fb0847e5b436b50fe44d7 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 4 Jan 2024 21:33:20 +0100 Subject: [PATCH 2/2] =?UTF-8?q?ocamlPackages.pgocaml:=204.3.0=20=E2=86=92?= =?UTF-8?q?=204.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ocaml-modules/pgocaml/default.nix | 25 +++++++------------ .../development/ocaml-modules/pgocaml/ppx.nix | 2 -- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/pkgs/development/ocaml-modules/pgocaml/default.nix b/pkgs/development/ocaml-modules/pgocaml/default.nix index 76b97103d667..46b239a3d28a 100644 --- a/pkgs/development/ocaml-modules/pgocaml/default.nix +++ b/pkgs/development/ocaml-modules/pgocaml/default.nix @@ -1,34 +1,27 @@ -{ lib, fetchFromGitHub, fetchpatch, buildDunePackage, ocaml +{ lib, fetchFromGitHub, buildDunePackage , calendar, camlp-streams, csv, hex, ppx_deriving, ppx_sexp_conv, re, rresult, sexplib }: -let with-camlp-streams = lib.optional (lib.versionAtLeast ocaml.version "5.0"); in - buildDunePackage rec { pname = "pgocaml"; - version = "4.3.0"; + version = "4.4.0"; src = fetchFromGitHub { owner = "darioteixeira"; repo = "pgocaml"; - rev = version; - hash = "sha256-W1fbRnU1l61qqxfVY2qiBnVpGD81xrBO8k0tWr+RXMY="; + rev = "v${version}"; + hash = "sha256-Mz3zVgXas1UivH/BVARx5kWClgr9v9YcGarwaD961tU="; }; - # Compatibility with OCaml ≥ 5.0 - patches = with-camlp-streams (fetchpatch { - url = "https://github.com/darioteixeira/pgocaml/commit/906a289dc57da4971e312c31eedd26d81e902ed5.patch"; - hash = "sha256-/v9Jheg98GhrcD2gcsQpPvq7YiIrvJj22SKvrBRlR9Y="; - }); - minimalOCamlVersion = "4.08"; - propagatedBuildInputs = [ calendar csv hex ppx_deriving ppx_sexp_conv re rresult sexplib ] - ++ with-camlp-streams camlp-streams; + propagatedBuildInputs = [ calendar csv hex ppx_deriving ppx_sexp_conv re + rresult sexplib camlp-streams + ]; meta = with lib; { description = "An interface to PostgreSQL databases for OCaml applications"; - inherit (src.meta) homepage; - license = licenses.lgpl2; + homepage = "https://github.com/darioteixeira/pgocaml"; + license = licenses.lgpl2Only; maintainers = with maintainers; [ vbgl ]; }; } diff --git a/pkgs/development/ocaml-modules/pgocaml/ppx.nix b/pkgs/development/ocaml-modules/pgocaml/ppx.nix index b649f70d198c..1b76f9a577e7 100644 --- a/pkgs/development/ocaml-modules/pgocaml/ppx.nix +++ b/pkgs/development/ocaml-modules/pgocaml/ppx.nix @@ -4,8 +4,6 @@ buildDunePackage { pname = "pgocaml_ppx"; inherit (pgocaml) src version meta; - duneVersion = "3"; - buildInputs = [ ppx_optcomp ]; propagatedBuildInputs = [ pgocaml ]; }