mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
0522e55f99
* ocamlPackages.ppxlib: 0.23.0 -> 0.24.0 * ocamlPackages.bls12-381{,-unix}: 0.4.2 -> 1.1.0 - Update to version 1.1.0 - Use the same revision tag used in the opam repository, as the release tarbal seems to be unavailable - Does not depend on bls12-381-gen and rust anymore * ocamlPackages.bls12-381-{gen: 0.4.2 -> 0.4.4,legacy: init at 0.4.4} - Update bls12-381-gen to version 0.4.4 - Add new package bls12-381-legacy * ocamlPackages.tezos-*: 10.2 -> 11.0 - Update tezos to version 11.0 - Add new packages: tezos-base-test-helpers tezos-embedded-protocol-demo-noops tezos-event-logging-test-helpers tezos-protocol-alpha tezos-protocol-demo-noops tezos-protocol-plugin-alpha tezos-protocol-demo-noops tezos-protocol-plugin-alpha tezos-shell-services-test-helpers - Remove old package: tezos-test-services * ocamlPackages.repr: 0.4.0 -> 0.5.0 * ocamlPackages.hacl-star-raw: 0.3.2 -> 0.4.5 * ocamlPackages.arp: 2.3.2 -> 3.0.0 * ocamlPackages.index: 1.4.1 -> 1.5.0 * ocamlPackages.digestif: 1.0.0 -> 1.1.0 * ocamlPackages.ethernet: 2.2.0 -> 3.0.0 * ocamlPackages.httpaf: 0.6.6 -> 0.7.1 * ocamlPackages.mirage-nat: 2.2.3 -> 2.2.5 * ocamlPackages.tcpip: 6.2.0 -> 7.0.1 * ocamlPackages.paf: 0.0.6 -> 0.0.8 * ocamlPackages.ppx_irmin: 2.7.2 -> 2.9.1 * ocamlPackages.tezos-*: add missing packages, needed by ligo-0.34 * ocamlPackages.ocaml-recovery-parser: init at 0.2.2 * ligo: 0.27.0 -> 0.34.0
86 lines
2.2 KiB
Nix
86 lines
2.2 KiB
Nix
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
|
, version ?
|
|
if lib.versionAtLeast ocaml.version "4.07"
|
|
then if lib.versionAtLeast ocaml.version "4.08"
|
|
then "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 = "0vm0jajmg8135scbg0x60ivyy5gzv4abwnl7zls2mrw23ac6kml6";
|
|
max_version = "4.10";
|
|
useDune2 = false;
|
|
useOMP2 = false;
|
|
};
|
|
"0.13.0" = {
|
|
sha256 = "0c54g22pm6lhfh3f7s5wbah8y48lr5lj3cqsbvgi99bly1b5vqvl";
|
|
useDune2 = false;
|
|
useOMP2 = false;
|
|
};
|
|
"0.15.0" = {
|
|
sha256 = "1p037kqj5858xrhh0dps6vbf4fnijla6z9fjz5zigvnqp4i2xkrn";
|
|
min_version = "4.07";
|
|
max_version = "4.12";
|
|
useOMP2 = false;
|
|
};
|
|
"0.18.0" = {
|
|
sha256 = "1ciy6va2gjrpjs02kha83pzh0x1gkmfsfsdgabbs1v14a8qgfibm";
|
|
min_version = "4.07";
|
|
max_version = "4.12";
|
|
};
|
|
"0.22.0" = {
|
|
sha256 = "0kf7lgcwygf6zlx7rwddqpqvasa6v7xiq0bqal8vxlib6lpg074q";
|
|
min_version = "4.07";
|
|
};
|
|
"0.22.2" = {
|
|
sha256 = "0fysjqcpv281n52wl3h0dy2lzf9d61wdzk90ldv3p63a4i3mr1j2";
|
|
min_version = "4.07";
|
|
};
|
|
"0.23.0" = {
|
|
sha256 = "0jg5v4pssbl66hn5davpin1i57a0r3r54l96vpz5y99xk5w70xi1";
|
|
min_version = "4.07";
|
|
};
|
|
"0.24.0" = {
|
|
sha256 = "sha256-wuG7cUZiVP2PdM+nZloip7lGGiWn6Wpkh2YoF/Fuc9o=";
|
|
min_version = "4.07";
|
|
};
|
|
}."${version}"; in
|
|
|
|
if param ? max_version && lib.versionAtLeast ocaml.version param.max_version
|
|
|| param ? min_version && !lib.versionAtLeast ocaml.version param.min_version
|
|
then throw "ppxlib-${version} is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
buildDunePackage rec {
|
|
pname = "ppxlib";
|
|
inherit version;
|
|
|
|
useDune2 = param.useDune2 or true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ocaml-ppx";
|
|
repo = pname;
|
|
rev = version;
|
|
inherit (param) sha256;
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
ocaml-compiler-libs
|
|
(if param.useOMP2 or true
|
|
then ocaml-migrate-parsetree-2
|
|
else ocaml-migrate-parsetree)
|
|
ppx_derivers
|
|
stdio
|
|
stdlib-shims
|
|
];
|
|
|
|
meta = {
|
|
description = "Comprehensive ppx tool set";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
inherit (src.meta) homepage;
|
|
};
|
|
}
|