1 { lib, which, stdenv, fetchzip, ocaml, findlib, hacl-star, ctypes, cppo }:
3 stdenv.mkDerivation rec {
4 pname = "ocaml${ocaml.version}-hacl-star-raw";
8 url = "https://github.com/project-everest/hacl-star/releases/download/ocaml-v${version}/hacl-star.${version}.tar.gz";
9 sha256 = "1330vgbf5krlkvifby96kyk13xhmihajk2w5hgf2761jrljmnnrs";
13 sourceRoot = "./source/raw";
15 minimalOCamlVersion = "4.08";
17 # strictoverflow is disabled because it breaks aarch64-darwin
18 hardeningDisable = [ "strictoverflow" ];
25 mkdir -p $OCAMLFIND_DESTDIR/stublibs
28 installTargets = "install-hacl-star-raw";
31 dontAddStaticConfigureFlags = true;
32 configurePlatforms = [];
40 propagatedBuildInputs = [
53 description = "Auto-generated low-level OCaml bindings for EverCrypt/HACL*";
54 license = lib.licenses.asl20;
55 maintainers = [ lib.maintainers.ulrikstrid ];
56 platforms = ocaml.meta.platforms;