ocamlPackages.mirage-crypto{,-pk,-rng}: 0.6.2 → 0.7.0
This commit is contained in:
parent
0684381e27
commit
2d51940df5
2 changed files with 14 additions and 14 deletions
|
@ -1,28 +1,23 @@
|
|||
{ lib, fetchurl, buildDunePackage, ounit, cstruct, ocplib-endian
|
||||
, cpuid, dune-configurator, cpuAcceleration ? false }:
|
||||
{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, pkg-config }:
|
||||
|
||||
buildDunePackage rec {
|
||||
minimumOCamlVersion = "4.07";
|
||||
minimumOCamlVersion = "4.08";
|
||||
|
||||
pname = "mirage-crypto";
|
||||
version = "0.6.2";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-v${version}.tbz";
|
||||
sha256 = "08xq49cxn66yi0gfajzi8czcxfx24rd191rvf7s10wfkz304sa72";
|
||||
sha256 = "0k7kllv3bh192yj6p9dk2z81r56w7x2kyr46pxygb5gnhqqxcncf";
|
||||
};
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
preBuild = ''
|
||||
MIRAGE_CRYPTO_ACCELERATE=${lib.boolToString cpuAcceleration}
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [ ounit ];
|
||||
|
||||
nativeBuildInputs = [ cpuid dune-configurator ];
|
||||
propagatedBuildInputs = [ cstruct ocplib-endian ];
|
||||
nativeBuildInputs = [ dune-configurator pkg-config ];
|
||||
propagatedBuildInputs = [ cstruct ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mirage/mirage-crypto";
|
||||
|
|
|
@ -1,14 +1,19 @@
|
|||
{ buildDunePackage, mirage-crypto, ounit, randomconv, cstruct }:
|
||||
{ buildDunePackage, mirage-crypto, ounit, randomconv, dune-configurator
|
||||
, cstruct, duration, logs, mtime, ocaml_lwt, mirage-runtime, mirage-time
|
||||
, mirage-clock, mirage-time-unix, mirage-clock-unix, mirage-unix }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "mirage-crypto-rng";
|
||||
|
||||
inherit (mirage-crypto) version src nativeBuildInputs useDune2 minimumOCamlVersion;
|
||||
inherit (mirage-crypto) version src useDune2 minimumOCamlVersion;
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [ ounit randomconv ];
|
||||
|
||||
propagatedBuildInputs = [ cstruct mirage-crypto ];
|
||||
nativeBuildInputs = [ dune-configurator ];
|
||||
propagatedBuildInputs = [ cstruct mirage-crypto duration logs mtime ocaml_lwt
|
||||
mirage-runtime mirage-time mirage-clock mirage-time-unix
|
||||
mirage-clock-unix mirage-unix ];
|
||||
|
||||
meta = mirage-crypto.meta // {
|
||||
description = "A cryptographically secure PRNG";
|
||||
|
|
Loading…
Reference in a new issue