2021-09-21 10:11:20 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
2022-02-28 14:29:36 +00:00
|
|
|
, git
|
2021-09-21 10:11:20 +01:00
|
|
|
, coq
|
|
|
|
, cacert
|
|
|
|
}:
|
|
|
|
|
|
|
|
coq.ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "ligo";
|
2022-02-28 14:29:36 +00:00
|
|
|
version = "0.36.0";
|
2021-09-21 10:11:20 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "ligolang";
|
|
|
|
repo = "ligo";
|
2021-10-22 09:54:19 +01:00
|
|
|
rev = version;
|
2022-02-28 14:29:36 +00:00
|
|
|
sha256 = "0zx8ai79ha3npm3aybzgisil27v9i052cqdllfri0fsc67dig78b";
|
|
|
|
fetchSubmodules = true;
|
2021-09-21 10:11:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# The build picks this up for ligo --version
|
2021-10-22 09:54:19 +01:00
|
|
|
LIGO_VERSION = version;
|
2021-09-21 10:11:20 +01:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
2022-02-28 14:29:36 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
git
|
|
|
|
coq
|
|
|
|
coq.ocamlPackages.menhir
|
|
|
|
coq.ocamlPackages.ocaml-recovery-parser
|
|
|
|
];
|
|
|
|
|
2021-09-21 10:11:20 +01:00
|
|
|
buildInputs = with coq.ocamlPackages; [
|
|
|
|
coq
|
|
|
|
menhir
|
|
|
|
menhirLib
|
|
|
|
qcheck
|
|
|
|
ocamlgraph
|
2022-02-28 14:29:36 +00:00
|
|
|
bisect_ppx
|
2021-09-21 10:11:20 +01:00
|
|
|
ppx_deriving
|
|
|
|
ppx_deriving_yojson
|
|
|
|
ppx_expect
|
2022-02-28 14:29:36 +00:00
|
|
|
ppx_import
|
|
|
|
terminal_size
|
|
|
|
ocaml-recovery-parser
|
2021-09-21 10:11:20 +01:00
|
|
|
yojson
|
|
|
|
getopt
|
2022-02-28 14:29:36 +00:00
|
|
|
core
|
2022-05-23 06:18:37 +01:00
|
|
|
core_unix
|
2021-09-21 10:11:20 +01:00
|
|
|
pprint
|
|
|
|
linenoise
|
2022-02-28 14:29:36 +00:00
|
|
|
|
|
|
|
# Test helpers deps
|
|
|
|
qcheck
|
|
|
|
qcheck-alcotest
|
|
|
|
alcotest-lwt
|
|
|
|
|
|
|
|
# vendored tezos' deps
|
|
|
|
ctypes
|
|
|
|
hacl-star
|
|
|
|
hacl-star-raw
|
|
|
|
lwt-canceler
|
|
|
|
ipaddr
|
|
|
|
bls12-381-unix
|
|
|
|
bls12-381-legacy
|
|
|
|
ptime
|
|
|
|
mtime
|
|
|
|
lwt_log
|
|
|
|
ringo
|
|
|
|
ringo-lwt
|
|
|
|
secp256k1-internal
|
|
|
|
resto
|
|
|
|
resto-directory
|
|
|
|
resto-cohttp-self-serving-client
|
|
|
|
irmin-pack
|
|
|
|
ezjsonm
|
2021-09-21 10:11:20 +01:00
|
|
|
data-encoding
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
cacert
|
|
|
|
coq.ocamlPackages.ca-certs
|
|
|
|
];
|
|
|
|
|
2022-01-23 20:24:16 +00:00
|
|
|
doCheck = false; # Tests fail, but could not determine the reason
|
2021-09-21 10:11:20 +01:00
|
|
|
|
2022-05-23 06:18:37 +01:00
|
|
|
patches = [ ./ligo.patch ]; # fix for core >= 0.15.0
|
|
|
|
|
2021-09-21 10:11:20 +01: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;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|