python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / ocaml-modules / mirage-crypto / default.nix
blob5b67c9ac4340843355a35d806ad846816f3b0f55
1 { lib, fetchurl, buildDunePackage, ounit2, cstruct, dune-configurator, eqaf, pkg-config
2 , withFreestanding ? false
3 , ocaml-freestanding
4 }:
6 buildDunePackage rec {
7   minimalOCamlVersion = "4.08";
9   pname = "mirage-crypto";
10   version = "0.10.7";
12   src = fetchurl {
13     url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-${version}.tbz";
14     sha256 = "sha256-PoGKdgwjXFtoTHtrQ7HN0qfdBOAQW2gNUk+DbrmIppw=";
15   };
17   doCheck = true;
18   checkInputs = [ ounit2 ];
20   nativeBuildInputs = [ pkg-config ];
21   buildInputs = [ dune-configurator  ];
22   propagatedBuildInputs = [
23     cstruct eqaf
24   ] ++ lib.optionals withFreestanding [
25     ocaml-freestanding
26   ];
28   strictDeps = !doCheck;
30   meta = with lib; {
31     homepage = "https://github.com/mirage/mirage-crypto";
32     description = "Simple symmetric cryptography for the modern age";
33     license = [
34       licenses.isc  # default license
35       licenses.bsd2 # mirage-crypto-rng-mirage
36       licenses.mit  # mirage-crypto-ec
37     ];
38     maintainers = with maintainers; [ sternenseemann ];
39   };