11 stdenv.mkDerivation rec {
12 pname = "ocaml${ocaml.version}-hacl-star-raw";
16 url = "https://github.com/cryspen/hacl-packages/releases/download/ocaml-v${version}/hacl-star.${version}.tar.gz";
17 hash = "sha256-6WPbdkT9IsX0Q8mF2vLBJMktEES8tU45JztOPepAL0o=";
25 # strictoverflow is disabled because it breaks aarch64-darwin
26 hardeningDisable = [ "strictoverflow" ];
35 make -C hacl-star-raw build-c
36 make -C hacl-star-raw build-bindings
43 mkdir -p $OCAMLFIND_DESTDIR/stublibs
49 make -C hacl-star-raw install
54 dontUseCmakeConfigure = true;
56 dontAddStaticConfigureFlags = true;
57 createFindlibDestdir = true;
66 propagatedBuildInputs = [
79 inherit (ocaml.meta) platforms;
80 description = "Auto-generated low-level OCaml bindings for EverCrypt/HACL*";
81 license = lib.licenses.asl20;
82 maintainers = [ lib.maintainers.ulrikstrid ];