ocamlPackages.mirage-crypto*: 0.8.10 -> 0.9.0
ocamlPackages.mirage-crypto: allow compiling with ocaml-freestanding ocamlPackages.mirage-crypto-ec: init at 0.9.0 https://github.com/mirage/mirage-crypto/releases/tag/v0.9.0
This commit is contained in:
committed by
Vincent Laporte
parent
b8a5a4338f
commit
77ffcfa47a
@@ -1,14 +1,17 @@
|
||||
{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, eqaf, pkg-config }:
|
||||
{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, eqaf, pkg-config
|
||||
, withFreestanding ? false
|
||||
, ocaml-freestanding
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
minimumOCamlVersion = "4.08";
|
||||
|
||||
pname = "mirage-crypto";
|
||||
version = "0.8.10";
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-v${version}.tbz";
|
||||
sha256 = "8a5976fe7837491d2fbd1917b77524776f70ae590e9f55cf757cc8951b5481fc";
|
||||
sha256 = "716684f8a70031f16115e3c84d42141c75fb1e688b7a699bbd09166176ed5217";
|
||||
};
|
||||
|
||||
useDune2 = true;
|
||||
@@ -17,12 +20,20 @@ buildDunePackage rec {
|
||||
checkInputs = [ ounit ];
|
||||
|
||||
nativeBuildInputs = [ dune-configurator pkg-config ];
|
||||
propagatedBuildInputs = [ cstruct eqaf ];
|
||||
propagatedBuildInputs = [
|
||||
cstruct eqaf
|
||||
] ++ lib.optionals withFreestanding [
|
||||
ocaml-freestanding
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mirage/mirage-crypto";
|
||||
description = "Simple symmetric cryptography for the modern age";
|
||||
license = licenses.isc;
|
||||
license = [
|
||||
licenses.isc # default license
|
||||
licenses.bsd2 # mirage-crypto-rng-mirage
|
||||
licenses.mit # mirage-crypto-ec
|
||||
];
|
||||
maintainers = with maintainers; [ sternenseemann ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user