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";
|
2021-10-14 00:43:12 +00:00
|
|
|
version = "10.2";
|
|
|
|
base_src = fetchFromGitLab {
|
2021-07-24 12:14:16 +00:00
|
|
|
owner = "tezos";
|
|
|
|
repo = "tezos";
|
|
|
|
rev = "v${version}";
|
2021-10-14 00:43:12 +00:00
|
|
|
sha256 = "1sqwbdclsvzz0781r0830ncy1j048h12jp3hsdy7hz4dpqp80jsq";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
src = "${base_src}/src/lib_stdlib";
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.10.0";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|