2022-12-28 21:21:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-10-17 02:12:59 +00:00
|
|
|
, fetchFromGitLab
|
2022-03-30 09:31:56 +00:00
|
|
|
, git
|
2021-10-17 02:12:59 +00:00
|
|
|
, coq
|
2022-10-21 18:38:19 +00:00
|
|
|
, ocamlPackages
|
2021-10-17 02:12:59 +00:00
|
|
|
, cacert
|
2022-10-21 18:38:19 +00:00
|
|
|
, ocaml-crunch
|
2021-10-17 02:12:59 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
ocamlPackages.buildDunePackage rec {
|
2021-10-17 02:12:59 +00:00
|
|
|
pname = "ligo";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.58.0";
|
2021-10-17 02:12:59 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "ligolang";
|
|
|
|
repo = "ligo";
|
2021-10-28 06:52:43 +00:00
|
|
|
rev = version;
|
2022-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-WhqCkPkXHjWS8BDh13ODrHg2AHJ8CBfksTH4Fxx4xek=";
|
2022-03-30 09:31:56 +00:00
|
|
|
fetchSubmodules = true;
|
2021-10-17 02:12:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# The build picks this up for ligo --version
|
2021-10-28 06:52:43 +00:00
|
|
|
LIGO_VERSION = version;
|
2021-10-17 02:12:59 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
duneVersion = "3";
|
2021-10-17 02:12:59 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
ocaml-crunch
|
2022-03-30 09:31:56 +00:00
|
|
|
git
|
|
|
|
coq
|
2022-10-21 18:38:19 +00:00
|
|
|
ocamlPackages.crunch
|
|
|
|
ocamlPackages.menhir
|
|
|
|
ocamlPackages.ocaml-recovery-parser
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
buildInputs = with ocamlPackages; [
|
2021-10-17 02:12:59 +00:00
|
|
|
coq
|
|
|
|
menhir
|
|
|
|
menhirLib
|
|
|
|
qcheck
|
|
|
|
ocamlgraph
|
2022-03-30 09:31:56 +00:00
|
|
|
bisect_ppx
|
2022-10-21 18:38:19 +00:00
|
|
|
decompress
|
2021-10-17 02:12:59 +00:00
|
|
|
ppx_deriving
|
|
|
|
ppx_deriving_yojson
|
|
|
|
ppx_expect
|
2022-03-30 09:31:56 +00:00
|
|
|
ppx_import
|
|
|
|
terminal_size
|
|
|
|
ocaml-recovery-parser
|
2021-10-17 02:12:59 +00:00
|
|
|
yojson
|
|
|
|
getopt
|
2022-03-30 09:31:56 +00:00
|
|
|
core
|
2022-07-18 16:21:45 +00:00
|
|
|
core_unix
|
2021-10-17 02:12:59 +00:00
|
|
|
pprint
|
|
|
|
linenoise
|
2022-10-21 18:38:19 +00:00
|
|
|
crunch
|
|
|
|
semver
|
|
|
|
lambda-term
|
|
|
|
tar-unix
|
|
|
|
parse-argv
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
# Test helpers deps
|
|
|
|
qcheck
|
|
|
|
qcheck-alcotest
|
|
|
|
alcotest-lwt
|
|
|
|
|
|
|
|
# vendored tezos' deps
|
2022-10-21 18:38:19 +00:00
|
|
|
tezos-plonk
|
|
|
|
tezos-bls12-381-polynomial
|
2022-03-30 09:31:56 +00:00
|
|
|
ctypes
|
2022-10-21 18:38:19 +00:00
|
|
|
ctypes_stubs_js
|
|
|
|
class_group_vdf
|
|
|
|
dune-configurator
|
2022-03-30 09:31:56 +00:00
|
|
|
hacl-star
|
|
|
|
hacl-star-raw
|
|
|
|
lwt-canceler
|
|
|
|
ipaddr
|
2022-10-21 18:38:19 +00:00
|
|
|
bls12-381
|
2022-03-30 09:31:56 +00:00
|
|
|
bls12-381-legacy
|
2022-10-30 15:09:59 +00:00
|
|
|
bls12-381-signature
|
2022-03-30 09:31:56 +00:00
|
|
|
ptime
|
|
|
|
mtime
|
|
|
|
lwt_log
|
|
|
|
ringo
|
|
|
|
ringo-lwt
|
|
|
|
secp256k1-internal
|
|
|
|
resto
|
|
|
|
resto-directory
|
|
|
|
resto-cohttp-self-serving-client
|
|
|
|
irmin-pack
|
|
|
|
ezjsonm
|
2021-10-17 02:12:59 +00:00
|
|
|
data-encoding
|
2022-10-21 18:38:19 +00:00
|
|
|
pure-splitmix
|
|
|
|
zarith_stubs_js
|
2021-10-17 02:12:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
cacert
|
2022-10-21 18:38:19 +00:00
|
|
|
ocamlPackages.ca-certs
|
2021-10-17 02:12:59 +00:00
|
|
|
];
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
doCheck = false; # Tests fail, but could not determine the reason
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://ligolang.org/";
|
|
|
|
downloadPage = "https://ligolang.org/docs/intro/installation";
|
|
|
|
description = "A friendly Smart Contract Language for Tezos";
|
|
|
|
license = licenses.mit;
|
2022-10-21 18:38:19 +00:00
|
|
|
platforms = ocamlPackages.ocaml.meta.platforms;
|
2022-12-28 21:21:41 +00:00
|
|
|
broken = stdenv.isLinux && stdenv.isAarch64;
|
2021-10-17 02:12:59 +00:00
|
|
|
maintainers = with maintainers; [ ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|