2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, buildDunePackage
|
|
|
|
, hex
|
|
|
|
, lwt
|
|
|
|
, zarith
|
|
|
|
, alcotest
|
|
|
|
, alcotest-lwt
|
|
|
|
, crowbar
|
|
|
|
, bigstring
|
|
|
|
, lwt_log
|
2021-10-14 00:43:12 +00:00
|
|
|
, ppx_inline_test
|
|
|
|
, qcheck-alcotest
|
|
|
|
, tezos-test-helpers
|
2021-07-24 12:14:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "tezos-stdlib";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "11.0";
|
2021-10-14 00:43:12 +00:00
|
|
|
base_src = fetchFromGitLab {
|
2021-07-24 12:14:16 +00:00
|
|
|
owner = "tezos";
|
|
|
|
repo = "tezos";
|
|
|
|
rev = "v${version}";
|
2022-01-25 03:21:06 +00:00
|
|
|
sha256 = "uUYd1DxH2bdCQlevQt3oGxvg0ai5EiCD2mti5SiueU8=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
src = "${base_src}/src/lib_stdlib";
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
rm -rf vendors
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
hex
|
|
|
|
lwt
|
|
|
|
zarith
|
2021-10-14 00:43:12 +00:00
|
|
|
ppx_inline_test
|
2021-07-24 12:14:16 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-10-14 00:43:12 +00:00
|
|
|
bigstring
|
|
|
|
lwt_log
|
2021-07-24 12:14:16 +00:00
|
|
|
alcotest
|
|
|
|
alcotest-lwt
|
|
|
|
crowbar
|
|
|
|
bigstring
|
|
|
|
lwt_log
|
2021-10-14 00:43:12 +00:00
|
|
|
qcheck-alcotest
|
|
|
|
# tezos-test-helpers
|
2021-07-24 12:14:16 +00:00
|
|
|
];
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
# circular dependency if we add this
|
|
|
|
doCheck = false;
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tezos: yet-another local-extension of the OCaml standard library";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|