2021-07-07 11:34:04 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, buildDunePackage
|
|
|
|
, hex
|
|
|
|
, lwt
|
|
|
|
, zarith
|
|
|
|
, alcotest
|
|
|
|
, alcotest-lwt
|
|
|
|
, crowbar
|
|
|
|
, bigstring
|
|
|
|
, lwt_log
|
2021-09-21 10:47:59 +02:00
|
|
|
, ppx_inline_test
|
|
|
|
, qcheck-alcotest
|
|
|
|
, tezos-test-helpers
|
2021-07-07 11:34:04 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "tezos-stdlib";
|
2021-09-21 10:47:59 +02:00
|
|
|
version = "10.2";
|
|
|
|
base_src = fetchFromGitLab {
|
2021-07-07 11:34:04 +02:00
|
|
|
owner = "tezos";
|
|
|
|
repo = "tezos";
|
|
|
|
rev = "v${version}";
|
2021-09-21 10:47:59 +02:00
|
|
|
sha256 = "1sqwbdclsvzz0781r0830ncy1j048h12jp3hsdy7hz4dpqp80jsq";
|
2021-07-07 11:34:04 +02:00
|
|
|
};
|
|
|
|
|
2021-09-21 10:47:59 +02:00
|
|
|
src = "${base_src}/src/lib_stdlib";
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.10.0";
|
2021-07-07 11:34:04 +02:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
rm -rf vendors
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
hex
|
|
|
|
lwt
|
|
|
|
zarith
|
2021-09-21 10:47:59 +02:00
|
|
|
ppx_inline_test
|
2021-07-07 11:34:04 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-09-21 10:47:59 +02:00
|
|
|
bigstring
|
|
|
|
lwt_log
|
2021-07-07 11:34:04 +02:00
|
|
|
alcotest
|
|
|
|
alcotest-lwt
|
|
|
|
crowbar
|
|
|
|
bigstring
|
|
|
|
lwt_log
|
2021-09-21 10:47:59 +02:00
|
|
|
qcheck-alcotest
|
|
|
|
# tezos-test-helpers
|
2021-07-07 11:34:04 +02:00
|
|
|
];
|
|
|
|
|
2021-09-21 10:47:59 +02:00
|
|
|
# circular dependency if we add this
|
|
|
|
doCheck = false;
|
2021-07-07 11:34:04 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tezos: yet-another local-extension of the OCaml standard library";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|