fblog: 4.4.0 -> 4.5.0
[NixPkgs.git] / pkgs / development / ocaml-modules / mirage-crypto / default.nix
blob3c8b00285e97204d84724f2464dad4368f82a692
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";
8   duneVersion = "3";
10   pname = "mirage-crypto";
11   version = "0.11.2";
13   src = fetchurl {
14     url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-${version}.tbz";
15     sha256 = "sha256-1rl8t/DcNEpgJRPMAxN8Hn8K4QXQchYUYmz08jHt92Q=";
16   };
18   doCheck = true;
19   checkInputs = [ ounit2 ];
21   nativeBuildInputs = [ pkg-config ];
22   buildInputs = [ dune-configurator  ];
23   propagatedBuildInputs = [
24     cstruct eqaf
25   ] ++ lib.optionals withFreestanding [
26     ocaml-freestanding
27   ];
29   meta = with lib; {
30     homepage = "https://github.com/mirage/mirage-crypto";
31     description = "Simple symmetric cryptography for the modern age";
32     license = [
33       licenses.isc  # default license
34       licenses.bsd2 # mirage-crypto-rng-mirage
35       licenses.mit  # mirage-crypto-ec
36     ];
37     maintainers = with maintainers; [ sternenseemann ];
38   };