nixpkgs/pkgs/development/compilers/ligo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

117 lines
2.1 KiB
Nix
Raw Normal View History

2022-12-07 15:12:39 +00:00
{ stdenv
, lib
2021-09-21 09:11:20 +00:00
, fetchFromGitLab
, git
2021-09-21 09:11:20 +00:00
, coq
2022-10-11 07:24:21 +00:00
, ocamlPackages
2021-09-21 09:11:20 +00:00
, cacert
, ocaml-crunch
2021-09-21 09:11:20 +00:00
}:
2022-10-11 07:24:21 +00:00
ocamlPackages.buildDunePackage rec {
2021-09-21 09:11:20 +00:00
pname = "ligo";
2023-02-20 08:57:14 +00:00
version = "0.60.0";
2021-09-21 09:11:20 +00:00
src = fetchFromGitLab {
owner = "ligolang";
repo = "ligo";
2021-10-22 08:54:19 +00:00
rev = version;
2023-02-20 08:57:14 +00:00
sha256 = "sha256-gyMSpy+F3pF2Kv1ygUs20mrspJ6GtJ6ySyZD7zfZj2w=";
fetchSubmodules = true;
2021-09-21 09:11:20 +00:00
};
# The build picks this up for ligo --version
2021-10-22 08:54:19 +00:00
LIGO_VERSION = version;
2021-09-21 09:11:20 +00:00
2022-10-11 07:24:21 +00:00
duneVersion = "3";
strictDeps = true;
nativeBuildInputs = [
ocaml-crunch
git
coq
2022-10-11 07:24:21 +00:00
ocamlPackages.crunch
ocamlPackages.menhir
ocamlPackages.ocaml-recovery-parser
];
2022-10-11 07:24:21 +00:00
buildInputs = with ocamlPackages; [
2021-09-21 09:11:20 +00:00
coq
menhir
menhirLib
qcheck
ocamlgraph
bisect_ppx
2022-10-11 07:24:21 +00:00
decompress
2021-09-21 09:11:20 +00:00
ppx_deriving
ppx_deriving_yojson
ppx_expect
ppx_import
terminal_size
ocaml-recovery-parser
2021-09-21 09:11:20 +00:00
yojson
getopt
core
core_unix
2021-09-21 09:11:20 +00:00
pprint
linenoise
crunch
2022-10-11 07:24:21 +00:00
semver
lambda-term
tar-unix
parse-argv
# Test helpers deps
qcheck
qcheck-alcotest
alcotest-lwt
# vendored tezos' deps
2022-10-11 07:24:21 +00:00
tezos-plonk
tezos-bls12-381-polynomial
ctypes
2022-10-11 07:24:21 +00:00
ctypes_stubs_js
class_group_vdf
dune-configurator
hacl-star
hacl-star-raw
lwt-canceler
ipaddr
bls12-381
bls12-381-legacy
bls12-381-signature
ptime
mtime
lwt_log
ringo
ringo-lwt
secp256k1-internal
resto
resto-directory
resto-cohttp-self-serving-client
irmin-pack
ezjsonm
2021-09-21 09:11:20 +00:00
data-encoding
2022-10-11 07:24:21 +00:00
pure-splitmix
zarith_stubs_js
2023-02-20 08:57:14 +00:00
simple-diff
2021-09-21 09:11:20 +00:00
];
nativeCheckInputs = [
2021-09-21 09:11:20 +00:00
cacert
2022-10-11 07:24:21 +00:00
ocamlPackages.ca-certs
2021-09-21 09:11:20 +00:00
];
doCheck = false; # Tests fail, but could not determine the reason
2021-09-21 09:11:20 +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-11 07:24:21 +00:00
platforms = ocamlPackages.ocaml.meta.platforms;
2022-12-07 15:12:39 +00:00
broken = stdenv.isLinux && stdenv.isAarch64;
2021-09-21 09:11:20 +00:00
maintainers = with maintainers; [ ulrikstrid ];
};
}