about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/tezos/crypto.nix
blob: 532e8fc12b2c01b553c280881c1e6990c4eae341 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib
, buildDunePackage
, tezos-stdlib
, tezos-rpc
, tezos-clic
, tezos-hacl-glue
, tezos-hacl-glue-unix
, secp256k1-internal
, ringo
, bls12-381
, bls12-381-unix
, tezos-test-helpers
, alcotest-lwt
}:

buildDunePackage {
  pname = "tezos-crypto";
  inherit (tezos-stdlib) version useDune2;
  src = "${tezos-stdlib.base_src}/src/lib_crypto";

  propagatedBuildInputs = [
    tezos-rpc
    tezos-clic
    tezos-hacl-glue
    tezos-hacl-glue-unix
    secp256k1-internal
    ringo
    bls12-381
    bls12-381-unix
  ];

  checkInputs = [
    tezos-test-helpers
    alcotest-lwt
  ];

  doCheck = true;

  meta = tezos-stdlib.meta // {
    description = "Tezos: library with all the cryptographic primitives used by Tezos";
  };
}