c1b9d04d9c
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
buildDunePackage,
|
|
ohex,
|
|
ounit2,
|
|
dune-configurator,
|
|
eqaf,
|
|
}:
|
|
|
|
buildDunePackage (finalAttrs: {
|
|
minimalOCamlVersion = "4.13";
|
|
|
|
pname = "mirage-crypto";
|
|
version = "2.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/mirage-crypto/releases/download/v${finalAttrs.version}/mirage-crypto-${finalAttrs.version}.tbz";
|
|
hash = "sha256-++2omj17+pmS/b7z67/HKA/O/dQloEBeMzBRJc1AmBU=";
|
|
};
|
|
|
|
doCheck = true;
|
|
checkInputs = [
|
|
ohex
|
|
ounit2
|
|
];
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
propagatedBuildInputs = [
|
|
eqaf
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/mirage/mirage-crypto";
|
|
description = "Simple symmetric cryptography for the modern age";
|
|
changelog = "https://raw.githubusercontent.com/mirage/mirage-crypto/refs/tags/v${finalAttrs.version}/CHANGES.md";
|
|
license = with lib.licenses; [
|
|
isc # default license
|
|
bsd2 # mirage-crypto-rng-mirage
|
|
mit # mirage-crypto-ec
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
sternenseemann
|
|
];
|
|
};
|
|
})
|