tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.pgocaml: 4.3.0 → 4.4.0
Vincent Laporte
2 years ago
dec21224
da12d804
+9
-18
2 changed files
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
pgocaml
default.nix
ppx.nix
+9
-16
pkgs/development/ocaml-modules/pgocaml/default.nix
···
1
-
{ lib, fetchFromGitHub, fetchpatch, buildDunePackage, ocaml
2
, calendar, camlp-streams, csv, hex, ppx_deriving, ppx_sexp_conv, re, rresult, sexplib
3
}:
4
-
5
-
let with-camlp-streams = lib.optional (lib.versionAtLeast ocaml.version "5.0"); in
6
7
buildDunePackage rec {
8
pname = "pgocaml";
9
-
version = "4.3.0";
10
src = fetchFromGitHub {
11
owner = "darioteixeira";
12
repo = "pgocaml";
13
-
rev = version;
14
-
hash = "sha256-W1fbRnU1l61qqxfVY2qiBnVpGD81xrBO8k0tWr+RXMY=";
15
};
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
-
23
minimalOCamlVersion = "4.08";
24
25
-
propagatedBuildInputs = [ calendar csv hex ppx_deriving ppx_sexp_conv re rresult sexplib ]
26
-
++ with-camlp-streams camlp-streams;
0
27
28
meta = with lib; {
29
description = "An interface to PostgreSQL databases for OCaml applications";
30
-
inherit (src.meta) homepage;
31
-
license = licenses.lgpl2;
32
maintainers = with maintainers; [ vbgl ];
33
};
34
}
···
1
+
{ lib, fetchFromGitHub, buildDunePackage
2
, calendar, camlp-streams, csv, hex, ppx_deriving, ppx_sexp_conv, re, rresult, sexplib
3
}:
0
0
4
5
buildDunePackage rec {
6
pname = "pgocaml";
7
+
version = "4.4.0";
8
src = fetchFromGitHub {
9
owner = "darioteixeira";
10
repo = "pgocaml";
11
+
rev = "v${version}";
12
+
hash = "sha256-Mz3zVgXas1UivH/BVARx5kWClgr9v9YcGarwaD961tU=";
13
};
14
0
0
0
0
0
0
15
minimalOCamlVersion = "4.08";
16
17
+
propagatedBuildInputs = [ calendar csv hex ppx_deriving ppx_sexp_conv re
18
+
rresult sexplib camlp-streams
19
+
];
20
21
meta = with lib; {
22
description = "An interface to PostgreSQL databases for OCaml applications";
23
+
homepage = "https://github.com/darioteixeira/pgocaml";
24
+
license = licenses.lgpl2Only;
25
maintainers = with maintainers; [ vbgl ];
26
};
27
}
-2
pkgs/development/ocaml-modules/pgocaml/ppx.nix
···
4
pname = "pgocaml_ppx";
5
inherit (pgocaml) src version meta;
6
7
-
duneVersion = "3";
8
-
9
buildInputs = [ ppx_optcomp ];
10
propagatedBuildInputs = [ pgocaml ];
11
}
···
4
pname = "pgocaml_ppx";
5
inherit (pgocaml) src version meta;
6
0
0
7
buildInputs = [ ppx_optcomp ];
8
propagatedBuildInputs = [ pgocaml ];
9
}