lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocamlPackages.pgocaml: fix for OCaml 5.0

authored by

Vincent Laporte and committed by
Vincent Laporte
7cd807e5 7b77c9ed

+12 -4
+12 -4
pkgs/development/ocaml-modules/pgocaml/default.nix
··· 1 - { lib, fetchFromGitHub, buildDunePackage 2 - , calendar, csv, hex, ppx_deriving, ppx_sexp_conv, re, rresult, sexplib 1 + { lib, fetchFromGitHub, fetchpatch, buildDunePackage, ocaml 2 + , calendar, camlp-streams, csv, hex, ppx_deriving, ppx_sexp_conv, re, rresult, sexplib 3 3 }: 4 + 5 + let with-camlp-streams = lib.optional (lib.versionAtLeast ocaml.version "5.0"); in 4 6 5 7 buildDunePackage rec { 6 8 pname = "pgocaml"; ··· 12 14 hash = "sha256-W1fbRnU1l61qqxfVY2qiBnVpGD81xrBO8k0tWr+RXMY="; 13 15 }; 14 16 17 + # Compatibility with OCaml ≥ 5.0 18 + patches = with-camlp-streams (fetchpatch { 19 + url = "https://github.com/darioteixeira/pgocaml/commit/906a289dc57da4971e312c31eedd26d81e902ed5.patch"; 20 + hash = "sha256-/v9Jheg98GhrcD2gcsQpPvq7YiIrvJj22SKvrBRlR9Y="; 21 + }); 22 + 15 23 minimalOCamlVersion = "4.08"; 16 - duneVersion = "3"; 17 24 18 - propagatedBuildInputs = [ calendar csv hex ppx_deriving ppx_sexp_conv re rresult sexplib ]; 25 + propagatedBuildInputs = [ calendar csv hex ppx_deriving ppx_sexp_conv re rresult sexplib ] 26 + ++ with-camlp-streams camlp-streams; 19 27 20 28 meta = with lib; { 21 29 description = "An interface to PostgreSQL databases for OCaml applications";