evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / ocaml-modules / mirage-crypto / ec.nix
blob4fa3d2389f7b3f47cc98e4a8589d668d03767fe7
1 { lib
2 , buildDunePackage
3 , mirage-crypto
4 , dune-configurator
5 , pkg-config
6 , mirage-crypto-rng
7 , mirage-crypto-pk
8 , alcotest
9 , asn1-combinators
10 , ohex
11 , ounit2
12 , ppx_deriving_yojson
13 , ppx_deriving
14 , yojson
15 , withFreestanding ? false
16 , ocaml-freestanding
19 buildDunePackage rec {
20   pname = "mirage-crypto-ec";
22   inherit (mirage-crypto)
23     src
24     version;
26   nativeBuildInputs = [ pkg-config ];
27   buildInputs = [
28     dune-configurator
29   ];
30   propagatedBuildInputs = [
31     mirage-crypto
32     mirage-crypto-rng
33   ] ++ lib.optionals withFreestanding [
34     ocaml-freestanding
35   ];
37   strictDeps = true;
39   doCheck = true;
40   checkInputs = [
41     alcotest
42     asn1-combinators
43     ohex
44     ounit2
45     ppx_deriving_yojson
46     ppx_deriving
47     yojson
48     mirage-crypto-pk
49   ];
51   meta = mirage-crypto.meta // {
52     description = "Elliptic Curve Cryptography with primitives taken from Fiat";
53   };