3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.mirage: init at 3.9.0

This commit is contained in:
Vincent Laporte 2020-11-06 21:55:22 +01:00 committed by Vincent Laporte
parent 7fb0a750f7
commit 9ca92f0a5b
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ 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";
};
}

View file

@ -539,6 +539,8 @@ let
minisat = callPackage ../development/ocaml-modules/minisat { };
mirage = callPackage ../development/ocaml-modules/mirage { };
mirage-block = callPackage ../development/ocaml-modules/mirage-block { };
mirage-bootvar-unix = callPackage ../development/ocaml-modules/mirage-bootvar-unix { };