python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / ocaml-modules / mirage-crypto / ec.nix
blob098b587f3d59f80beebff1c145274f51c1b50437
1 { lib
2 , ocaml
3 , buildDunePackage
4 , mirage-crypto
5 , dune-configurator
6 , pkg-config
7 , cstruct
8 , mirage-crypto-rng
9 , mirage-crypto-pk
10 , hex
11 , alcotest
12 , asn1-combinators
13 , ppx_deriving_yojson
14 , ppx_deriving
15 , yojson
16 , withFreestanding ? false
17 , ocaml-freestanding
20 buildDunePackage rec {
21   pname = "mirage-crypto-ec";
23   inherit (mirage-crypto)
24     src
25     version;
27   nativeBuildInputs = [ pkg-config ];
28   buildInputs = [
29     ocaml
30     dune-configurator
31   ];
32   propagatedBuildInputs = [
33     cstruct
34     mirage-crypto
35     mirage-crypto-rng
36   ] ++ lib.optionals withFreestanding [
37     ocaml-freestanding
38   ];
40   strictDeps = !doCheck;
42   doCheck = true;
43   checkInputs = [
44     hex
45     alcotest
46     asn1-combinators
47     ppx_deriving_yojson
48     ppx_deriving
49     yojson
50     mirage-crypto-pk
51   ];
53   meta = mirage-crypto.meta // {
54     description = "Elliptic Curve Cryptography with primitives taken from Fiat";
55   };