nixpkgs/pkgs/development/ocaml-modules/tezos/protocol-environment-sigs.nix
Ulrik Strid 2db064d028 ocamlPackages.tezos-*: 8.3 -> 10.2
ocamlPackages.lwt-canceler: 0.2 -> 0.3
ocamlPackages.json-data-encoding: 0.8 -> 0.10
ocamlPackages.data-encoding: 0.2.0 -> 0.4.0
ocamlPackages.ff-sig, ff-pbt: init at 0.6.1
ocamlPacakges.bls12-381: 0.3.15 -> 0.4.2

Co-authored-by: Vincent Laporte <vbgl@users.noreply.github.com>
2021-10-13 10:04:20 +02:00

40 lines
1.1 KiB
Nix

{ lib
, buildDunePackage
, ocaml
, tezos-stdlib
, tezos-protocol-environment-packer
, zarith
}:
buildDunePackage {
pname = "tezos-protocol-environment-sigs";
inherit (tezos-stdlib) version useDune2;
src = "${tezos-stdlib.base_src}/src/lib_protocol_environment";
postPatch = ''
ls ./sigs/v0
cp -f ${zarith}/lib/ocaml/${ocaml.version}/site-lib/zarith/z.mli ./sigs/v1/z.mli
cp -f ${zarith}/lib/ocaml/${ocaml.version}/site-lib/zarith/z.mli ./sigs/v2/z.mli
cp -f ${zarith}/lib/ocaml/${ocaml.version}/site-lib/zarith/z.mli ./sigs/v3/z.mli
sed -i 's/out_channel/Stdlib.out_channel/g' ./sigs/v1/z.mli
sed -i 's/Buffer/Stdlib.Buffer/g' ./sigs/v1/z.mli
sed -i 's/out_channel/Stdlib.out_channel/g' ./sigs/v2/z.mli
sed -i 's/Buffer/Stdlib.Buffer/g' ./sigs/v2/z.mli
sed -i 's/out_channel/Stdlib.out_channel/g' ./sigs/v3/z.mli
sed -i 's/Buffer/Stdlib.Buffer/g' ./sigs/v3/z.mli
'';
propagatedBuildInputs = [
tezos-protocol-environment-packer
];
checkInputs = [
tezos-stdlib
];
doCheck = true;
meta = tezos-stdlib.meta // {
description = "Tezos: restricted typing environment for the economic protocols";
};
}