mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
a13cdfe520
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild. This makes some closures significantly smaller and makes cross compilation easier
59 lines
950 B
Nix
59 lines
950 B
Nix
{ lib
|
|
, ocaml
|
|
, buildDunePackage
|
|
, mirage-crypto
|
|
, dune-configurator
|
|
, pkg-config
|
|
, cstruct
|
|
, mirage-crypto-rng
|
|
, mirage-crypto-pk
|
|
, hex
|
|
, alcotest
|
|
, asn1-combinators
|
|
, ppx_deriving_yojson
|
|
, ppx_deriving
|
|
, yojson
|
|
, withFreestanding ? false
|
|
, ocaml-freestanding
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mirage-crypto-ec";
|
|
|
|
inherit (mirage-crypto)
|
|
minimumOCamlVersion
|
|
src
|
|
version
|
|
useDune2;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
ocaml
|
|
dune-configurator
|
|
];
|
|
propagatedBuildInputs = [
|
|
cstruct
|
|
mirage-crypto
|
|
mirage-crypto-rng
|
|
] ++ lib.optionals withFreestanding [
|
|
ocaml-freestanding
|
|
];
|
|
|
|
strictDeps = !doCheck;
|
|
|
|
doCheck = true;
|
|
checkInputs = [
|
|
hex
|
|
alcotest
|
|
asn1-combinators
|
|
ppx_deriving_yojson
|
|
ppx_deriving
|
|
yojson
|
|
mirage-crypto-pk
|
|
];
|
|
|
|
meta = mirage-crypto.meta // {
|
|
description = "Elliptic Curve Cryptography with primitives taken from Fiat";
|
|
};
|
|
}
|