ffc78d3539
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
40 lines
727 B
Nix
40 lines
727 B
Nix
{ lib, buildDunePackage, ocaml, alcotest
|
|
, functoria, mirage-runtime, bos
|
|
, ipaddr, astring, logs, stdlib-shims
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mirage";
|
|
inherit (mirage-runtime) version src;
|
|
|
|
minimumOCamlVersion = "4.08";
|
|
|
|
useDune2 = true;
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
propagatedBuildInputs = [
|
|
ipaddr
|
|
functoria
|
|
mirage-runtime
|
|
bos
|
|
astring
|
|
logs
|
|
stdlib-shims
|
|
];
|
|
|
|
doCheck = true;
|
|
checkInputs = [
|
|
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";
|
|
};
|
|
}
|