97eb7ee0da
ocamlPackages.base_quickcheck: 0.17.0 → 0.17.1 ocamlPackages.optcomp: 0.17.0 → 0.17.1 ocamlPackages.ppx_bench: 0.17.0 → 0.17.1 ocamlPackages.ppx_bin_prot: 0.17.0 → 0.17.1 ocamlPackages.ppx_deriving: 6.0.3 → 6.1.0 ocamlPackages.ppx_deriving_qcheck: 0.6 → 0.7 ocamlPackages.ppx_deriving_yaml: 0.3.0 → 0.4.1 ocamlPackages.ppx_deriving_yojson: 3.9.0 → 3.10.0 ocamlPackages.ppx_diff: 0.17.0 → 0.17.1 ocamlPackages.ppx_expect: 0.17.2 → 0.17.3 ocamlPackages.ppx_globalize: 0.17.0 → 0.17.2 ocamlPackages.ppx_inline_test: 0.17.0 → 0.17.1 ocamlPackages.ppx_let: 0.17.0 → 0.17.1 ocamlPackages.ppx_stable: 0.17.0 → 0.17.1 ocamlPackages.ppx_tydi: 0.17.0 → 0.17.1 ocamlPackages.ppx_typeprep_conv: 0.17.0 → 0.17.1 ocamlPackages.ppx_variants_conv: 0.17.0 → 0.17.1 ocamlPackages.sexp_conv: 0.17.0 → 0.17.1 ocamlPackages.sexp_message: 0.17.2 → 0.17.4 reason: 3.15.0 → 3.16.0 ocamlPackages.bisect_ppx: make compatible with ppxlib 0.36 ocamlPackages.config: make compatible with ppxlib 0.36 ocamlPackages.lwt_ppx: make compatible with ppxlib 0.36 ocamlPackages.melange: make compatible with ppxlib 0.36 ocamlPackages.ppx_bitstring: make compatible with ppxlib 0.36 ocamlPackages.ppx_repr: make compatible with ppxlib 0.36 ocamlPackages.bistro: mark as broken ocamlPackages.dream-html: mark as broken ocamlPackages.ocsigen-ppx-rpc: mark as broken ocamlPackages.ppx_deriving_cmdliner: mark as broken ocamlPackages.reason-react-ppx: mark as broken
131 lines
3.5 KiB
Nix
131 lines
3.5 KiB
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
buildDunePackage,
|
|
ocaml,
|
|
version ?
|
|
if lib.versionAtLeast ocaml.version "4.07" then
|
|
if lib.versionAtLeast ocaml.version "4.08" then
|
|
if lib.versionAtLeast ocaml.version "4.11" then
|
|
if lib.versionAtLeast ocaml.version "5.03" then "0.36.0" else "0.33.0"
|
|
else
|
|
"0.24.0"
|
|
else
|
|
"0.15.0"
|
|
else
|
|
"0.13.0",
|
|
ocaml-compiler-libs,
|
|
ocaml-migrate-parsetree,
|
|
ppx_derivers,
|
|
stdio,
|
|
stdlib-shims,
|
|
ocaml-migrate-parsetree-2,
|
|
}:
|
|
|
|
let
|
|
param =
|
|
{
|
|
"0.8.1" = {
|
|
sha256 = "sha256-pct57oO7qAMEtlvEfymFOCvviWaLG0b5/7NzTC8vdSE=";
|
|
max_version = "4.10";
|
|
OMP = [ ocaml-migrate-parsetree ];
|
|
};
|
|
"0.13.0" = {
|
|
sha256 = "sha256-geHz0whQDg5/YQjVsN2iuHlkClwh7z3Eqb2QOBzuOdk=";
|
|
min_version = "4.07";
|
|
max_version = "4.11";
|
|
OMP = [ ocaml-migrate-parsetree ];
|
|
};
|
|
"0.15.0" = {
|
|
sha256 = "sha256-C2MNf410qJmlXMJxiLXOA+c1qT8H6gwt5WUy2P2TszA=";
|
|
min_version = "4.07";
|
|
max_version = "4.12";
|
|
OMP = [ ocaml-migrate-parsetree ];
|
|
};
|
|
"0.18.0" = {
|
|
sha256 = "sha256-nUg8NkZ64GHHDfcWbtFGXq3MNEKu+nYPtcVDm/gEfcM=";
|
|
min_version = "4.07";
|
|
max_version = "4.12";
|
|
OMP = [ ocaml-migrate-parsetree-2 ];
|
|
};
|
|
"0.22.0" = {
|
|
sha256 = "sha256-PuuR4DlmZiKEoyIuYS3uf0+it2N8U9lXLSp0E0u5bXo=";
|
|
min_version = "4.07";
|
|
max_version = "4.13";
|
|
OMP = [ ocaml-migrate-parsetree-2 ];
|
|
};
|
|
"0.22.2" = {
|
|
sha256 = "sha256-0Oih69xiILFXTXqSbwCEYMURjM73m/mgzgJC80z/Ilo=";
|
|
min_version = "4.07";
|
|
max_version = "4.14";
|
|
OMP = [ ocaml-migrate-parsetree-2 ];
|
|
};
|
|
"0.23.0" = {
|
|
sha256 = "sha256-G1g2wYa51aFqz0falPOWj08ItRm3cpzYao/TmXH+EuU=";
|
|
min_version = "4.07";
|
|
max_version = "4.14";
|
|
};
|
|
"0.24.0" = {
|
|
sha256 = "sha256-d2YCfC7ND1s7Rg6SEqcHCcZ0QngRPrkfMXxWxB56kMg=";
|
|
min_version = "4.07";
|
|
max_version = "5.1";
|
|
};
|
|
"0.28.0" = {
|
|
sha256 = "sha256-2Hrl+aCBIGMIypZICbUKZq646D0lSAHouWdUSLYM83c=";
|
|
min_version = "4.07";
|
|
max_version = "5.1";
|
|
};
|
|
"0.30.0" = {
|
|
sha256 = "sha256-3UpjvenSm0mBDgTXZTk3yTLxd6lByg4ZgratU6xEIRA=";
|
|
min_version = "4.07";
|
|
};
|
|
"0.32.1" = {
|
|
sha256 = "sha256-nbrYvLHItPPfP1i8pgpe0j2GUx8No0tBlshr1YXAnX8=";
|
|
min_version = "4.07";
|
|
};
|
|
"0.33.0" = {
|
|
sha256 = "sha256-/6RO9VHyO3XiHb1pijAxBDE4Gq8UC5/kuBwucKLSxjo=";
|
|
min_version = "4.07";
|
|
};
|
|
"0.36.0" = {
|
|
sha256 = "sha256-WrobzhTFMQhhQTARDIQ9AEv5O9LPOgd4/XCGuFOQpDQ=";
|
|
min_version = "4.08";
|
|
};
|
|
}
|
|
."${version}";
|
|
in
|
|
|
|
if
|
|
param ? max_version && lib.versionAtLeast ocaml.version param.max_version
|
|
|| param ? min_version && lib.versionOlder ocaml.version param.min_version
|
|
then
|
|
throw "ppxlib-${version} is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
buildDunePackage rec {
|
|
pname = "ppxlib";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ocaml-ppx/ppxlib/releases/download/${version}/ppxlib-${version}.tbz";
|
|
inherit (param) sha256;
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
ocaml-compiler-libs
|
|
]
|
|
++ (param.OMP or [ ])
|
|
++ [
|
|
ppx_derivers
|
|
stdio
|
|
stdlib-shims
|
|
];
|
|
|
|
meta = {
|
|
description = "Comprehensive ppx tool set";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
homepage = "https://github.com/ocaml-ppx/ppxlib";
|
|
};
|
|
}
|