1 { lib, fetchurl, buildDunePackage, ocaml
3 if lib.versionAtLeast ocaml.version "4.07"
4 then if lib.versionAtLeast ocaml.version "4.08"
5 then if lib.versionAtLeast ocaml.version "4.11"
6 then "0.32.0" else "0.24.0" else "0.15.0" else "0.13.0"
7 , ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio
8 , stdlib-shims, ocaml-migrate-parsetree-2
13 sha256 = "sha256-pct57oO7qAMEtlvEfymFOCvviWaLG0b5/7NzTC8vdSE=";
15 OMP = [ ocaml-migrate-parsetree ];
18 sha256 = "sha256-geHz0whQDg5/YQjVsN2iuHlkClwh7z3Eqb2QOBzuOdk=";
21 OMP = [ ocaml-migrate-parsetree ];
24 sha256 = "sha256-C2MNf410qJmlXMJxiLXOA+c1qT8H6gwt5WUy2P2TszA=";
27 OMP = [ ocaml-migrate-parsetree ];
30 sha256 = "sha256-nUg8NkZ64GHHDfcWbtFGXq3MNEKu+nYPtcVDm/gEfcM=";
33 OMP = [ ocaml-migrate-parsetree-2 ];
36 sha256 = "sha256-PuuR4DlmZiKEoyIuYS3uf0+it2N8U9lXLSp0E0u5bXo=";
39 OMP = [ ocaml-migrate-parsetree-2 ];
42 sha256 = "sha256-0Oih69xiILFXTXqSbwCEYMURjM73m/mgzgJC80z/Ilo=";
45 OMP = [ ocaml-migrate-parsetree-2 ];
48 sha256 = "sha256-G1g2wYa51aFqz0falPOWj08ItRm3cpzYao/TmXH+EuU=";
53 sha256 = "sha256-d2YCfC7ND1s7Rg6SEqcHCcZ0QngRPrkfMXxWxB56kMg=";
58 sha256 = "sha256-2Hrl+aCBIGMIypZICbUKZq646D0lSAHouWdUSLYM83c=";
63 sha256 = "sha256-3UpjvenSm0mBDgTXZTk3yTLxd6lByg4ZgratU6xEIRA=";
67 sha256 = "sha256-UHzHPM+JXyLutSV6IkODjBijigkQX8/1Xu75FIVVQis=";
72 if param ? max_version && lib.versionAtLeast ocaml.version param.max_version
73 || param ? min_version && lib.versionOlder ocaml.version param.min_version
74 then throw "ppxlib-${version} is not available for OCaml ${ocaml.version}"
77 buildDunePackage rec {
82 url = "https://github.com/ocaml-ppx/ppxlib/releases/download/${version}/ppxlib-${version}.tbz";
83 inherit (param) sha256;
86 propagatedBuildInputs = [
88 ] ++ (param.OMP or []) ++ [
95 description = "Comprehensive ppx tool set";
96 license = lib.licenses.mit;
97 maintainers = [ lib.maintainers.vbgl ];
98 homepage = "https://github.com/ocaml-ppx/ppxlib";