depot/third_party/nixpkgs/pkgs/development/ocaml-modules/mirage/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

39 lines
743 B
Nix

{ lib, buildDunePackage, ocaml, alcotest
, functoria, mirage-runtime, bos
, ipaddr, astring, logs, stdlib-shims
}:
buildDunePackage rec {
pname = "mirage";
inherit (mirage-runtime) version src;
minimalOCamlVersion = "4.08";
outputs = [ "out" "dev" ];
propagatedBuildInputs = [
ipaddr
functoria
mirage-runtime
bos
astring
logs
stdlib-shims
];
# Tests need opam-monorepo
doCheck = false;
nativeCheckInputs = [
alcotest
];
installPhase = ''
runHook preInstall
dune install --prefix=$out --libdir=$dev/lib/ocaml/${ocaml.version}/site-lib/ ${pname}
runHook postInstall
'';
meta = mirage-runtime.meta // {
description = "The MirageOS library operating system";
};
}