nixpkgs/pkgs/development/compilers/ligo/default.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

141 lines
2.6 KiB
Nix

{
stdenv,
lib,
fetchFromGitLab,
git,
coq,
ocamlPackages,
cacert,
ocaml-crunch,
jq,
mustache-go,
yaml2json,
tezos-rust-libs,
darwin,
}:
ocamlPackages.buildDunePackage rec {
pname = "ligo";
version = "1.7.1";
src = fetchFromGitLab {
owner = "ligolang";
repo = "ligo";
rev = version;
hash = "sha256-pBoLgS/9MLMrc98niI+o2JoJ3gpvhyRY2o9GmVc5hIA=";
fetchSubmodules = true;
};
patches = [ ./make-compatible-with-linol-0_6.patch ];
# The build picks this up for ligo --version
LIGO_VERSION = version;
# This is a hack to work around the hack used in the dune files
OPAM_SWITCH_PREFIX = "${tezos-rust-libs}";
nativeBuildInputs = [
ocaml-crunch
git
coq
ocamlPackages.crunch
ocamlPackages.menhir
ocamlPackages.ocaml-recovery-parser
# deps for changelog
jq
mustache-go
yaml2json
];
buildInputs =
with ocamlPackages;
[
coq
menhir
menhirLib
qcheck
ocamlgraph
bisect_ppx
decompress
fileutils
ppx_deriving
ppx_deriving_yojson
ppx_yojson_conv
ppx_expect
ppx_import
terminal_size
ocaml-recovery-parser
yojson
getopt
core
core_unix
pprint
linenoise
crunch
semver
lambda-term
tar-unix
parse-argv
hacl-star
prometheus
lwt_ppx
msgpck
# lsp
linol
linol-lwt
ocaml-lsp
# Test helpers deps
qcheck
qcheck-alcotest
alcotest-lwt
# vendored tezos' deps
aches
aches-lwt
ctypes
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
data-encoding
pure-splitmix
zarith_stubs_js
simple-diff
seqes
stdint
tezt
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
];
nativeCheckInputs = [
cacert
ocamlPackages.ca-certs
];
doCheck = false; # Tests fail, but could not determine the reason
meta = with lib; {
homepage = "https://ligolang.org/";
downloadPage = "https://ligolang.org/docs/intro/installation";
description = "Friendly Smart Contract Language for Tezos";
mainProgram = "ligo";
license = licenses.mit;
platforms = ocamlPackages.ocaml.meta.platforms;
maintainers = with maintainers; [ ulrikstrid ];
};
}