depot/third_party/nixpkgs/pkgs/development/ocaml-modules/mirage/default.nix
Default email 510ba8c3d9 Project import generated by Copybara.
GitOrigin-RevId: 069f183f16c3ea5d4b6e7625433b92eba77534f7
2020-11-15 05:44:38 -08:00

25 lines
520 B
Nix

{ lib, buildDunePackage, ocaml
, functoria, mirage-runtime
}:
buildDunePackage rec {
pname = "mirage";
inherit (mirage-runtime) version src;
useDune2 = true;
outputs = [ "out" "dev" ];
propagatedBuildInputs = [ functoria mirage-runtime ];
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";
};
}