depot/third_party/nixpkgs/pkgs/development/ocaml-modules/tezos/protocol-010-PtGRANAD.nix

28 lines
560 B
Nix
Raw Normal View History

{ lib
, buildDunePackage
, tezos-stdlib
, tezos-protocol-compiler
}:
buildDunePackage {
pname = "tezos-protocol-010-PtGRANAD";
inherit (tezos-stdlib) version useDune2;
src = "${tezos-stdlib.base_src}/src/proto_010_PtGRANAD/lib_protocol";
preBuild = ''
rm dune
cp -f ${tezos-protocol-compiler.src}/dune_protocol dune
sed -i.back -e s/-nostdlib//g dune.inc
'';
buildInputs = [
tezos-protocol-compiler
];
doCheck = true;
meta = tezos-stdlib.meta // {
description = "Tezos/Protocol: economic-protocol definition";
};
}