depot/pkgs/development/ocaml-modules/mirage-crypto/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

37 lines
1,006 B
Nix

{ lib, fetchurl, buildDunePackage, ohex, ounit2, dune-configurator, eqaf-cstruct
, withFreestanding ? false
, ocaml-freestanding
}:
buildDunePackage rec {
minimalOCamlVersion = "4.13";
pname = "mirage-crypto";
version = "1.1.0";
src = fetchurl {
url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-${version}.tbz";
hash = "sha256-xxiXZ6fq1UkjyrAg85zQw0r31LBId2k52U8Cir9TY1M=";
};
doCheck = true;
checkInputs = [ ohex ounit2 ];
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [
eqaf-cstruct
] ++ 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 ];
};
}