@@ -1,14 +1,17 @@
1−{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, eqaf, pkg-config }:
1+{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, eqaf, pkg-config
2+, withFreestanding ? false
3+, ocaml-freestanding
4+}:
25
36buildDunePackage rec {
47 minimumOCamlVersion = "4.08";
58
69 pname = "mirage-crypto";
7− version = "0.8.10";
10+ version = "0.9.0";
811
912 src = fetchurl {
1013 url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-v${version}.tbz";
11− sha256 = "8a5976fe7837491d2fbd1917b77524776f70ae590e9f55cf757cc8951b5481fc";
14+ sha256 = "716684f8a70031f16115e3c84d42141c75fb1e688b7a699bbd09166176ed5217";
1215 };
1316
1417 useDune2 = true;
@@ -17,12 +20,20 @@ buildDunePackage rec {
1720 checkInputs = [ ounit ];
1821
1922 nativeBuildInputs = [ dune-configurator pkg-config ];
20− propagatedBuildInputs = [ cstruct eqaf ];
23+ propagatedBuildInputs = [
24+ cstruct eqaf
25+ ] ++ lib.optionals withFreestanding [
26+ ocaml-freestanding
27+ ];
2128
2229 meta = with lib; {
2330 homepage = "https://github.com/mirage/mirage-crypto";
2431 description = "Simple symmetric cryptography for the modern age";
25− license = licenses.isc;
32+ license = [
33+ licenses.isc # default license
34+ licenses.bsd2 # mirage-crypto-rng-mirage
35+ licenses.mit # mirage-crypto-ec
36+ ];
2637 maintainers = with maintainers; [ sternenseemann ];
2738 };
2839}