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

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

137 lines
2.4 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
2023-04-27 14:31:24 +00:00
, jq
, mustache-go
, yaml2json
, tezos-rust-libs
2023-05-05 13:02:39 +00:00
, darwin
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";
2024-07-03 05:00:16 +00:00
version = "1.7.1";
2021-09-21 09:11:20 +00:00
src = fetchFromGitLab {
owner = "ligolang";
repo = "ligo";
2021-10-22 08:54:19 +00:00
rev = version;
2024-07-03 05:00:16 +00:00
hash = "sha256-pBoLgS/9MLMrc98niI+o2JoJ3gpvhyRY2o9GmVc5hIA=";
fetchSubmodules = true;
2021-09-21 09:11:20 +00:00
};
patches = [ ./make-compatible-with-linol-0_6.patch ];
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;
2023-04-27 14:31:24 +00:00
# This is a hack to work around the hack used in the dune files
OPAM_SWITCH_PREFIX = "${tezos-rust-libs}";
2021-09-21 09:11:20 +00:00
nativeBuildInputs = [
ocaml-crunch
git
coq
2022-10-11 07:24:21 +00:00
ocamlPackages.crunch
ocamlPackages.menhir
ocamlPackages.ocaml-recovery-parser
2023-04-27 14:31:24 +00:00
# deps for changelog
jq
mustache-go
yaml2json
];
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
fileutils
2021-09-21 09:11:20 +00:00
ppx_deriving
ppx_deriving_yojson
2023-08-16 15:06:29 +00:00
ppx_yojson_conv
2021-09-21 09:11:20 +00:00
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
2023-04-27 14:31:24 +00:00
hacl-star
prometheus
2023-09-27 19:03:09 +00:00
lwt_ppx
msgpck
2023-04-27 14:31:24 +00:00
# lsp
linol
linol-lwt
ocaml-lsp
# Test helpers deps
qcheck
qcheck-alcotest
alcotest-lwt
# vendored tezos' deps
2023-04-27 14:31:24 +00:00
aches
aches-lwt
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-signature
ptime
mtime
lwt_log
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
2023-06-08 14:00:16 +00:00
seqes
stdint
tezt
2023-05-05 13:02:39 +00:00
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
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 = "Friendly Smart Contract Language for Tezos";
mainProgram = "ligo";
2021-09-21 09:11:20 +00:00
license = licenses.mit;
2022-10-11 07:24:21 +00:00
platforms = ocamlPackages.ocaml.meta.platforms;
2021-09-21 09:11:20 +00:00
maintainers = with maintainers; [ ulrikstrid ];
};
}