forked from mirrors/nixpkgs
416d7f1bb7
* ocamlPackages.mirage-crypto: 0.10.3 -> 0.10.5 https://github.com/mirage/mirage-crypto/releases/tag/v0.10.4 https://github.com/mirage/mirage-crypto/releases/tag/v0.10.5 Co-authored-by: sternenseemann <sternenseemann@systemli.org> * ocamlPackages.otr: 0.3.8 -> 0.3.10 https://github.com/hannesm/ocaml-otr/releases/tag/v0.3.9 https://github.com/hannesm/ocaml-otr/releases/tag/v0.3.10 * ocamlPackages.awa: propagate ppx_sexp_conv as a normal build input awa depends on ppx_sexp_conv.runtime_lib, so it needs to be propagated. This was previously masked by the dependency being propagated from another package. Co-authored-by: sternenseemann <sternenseemann@systemli.org>
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, eqaf, pkg-config
|
|
, withFreestanding ? false
|
|
, ocaml-freestanding
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
minimumOCamlVersion = "4.08";
|
|
|
|
pname = "mirage-crypto";
|
|
version = "0.10.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-v${version}.tbz";
|
|
sha256 = "sha256-eeKMSRZrBiTzWLv80P5LeouPib24uTigk2HLtORKpJU=";
|
|
};
|
|
|
|
useDune2 = true;
|
|
|
|
doCheck = true;
|
|
checkInputs = [ ounit ];
|
|
|
|
nativeBuildInputs = [ dune-configurator pkg-config ];
|
|
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 # default license
|
|
licenses.bsd2 # mirage-crypto-rng-mirage
|
|
licenses.mit # mirage-crypto-ec
|
|
];
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
};
|
|
}
|