2021-01-05 17:05:55 +00:00
|
|
|
{ lib, buildDunePackage, ocaml, alcotest
|
|
|
|
, functoria, mirage-runtime, bos
|
|
|
|
, ipaddr, astring, logs, stdlib-shims
|
2020-11-15 13:44:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "mirage";
|
|
|
|
inherit (mirage-runtime) version src;
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-04 12:14:45 +00:00
|
|
|
duneVersion = "3";
|
2020-11-15 13:44:38 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipaddr
|
|
|
|
functoria
|
|
|
|
mirage-runtime
|
|
|
|
bos
|
|
|
|
astring
|
|
|
|
logs
|
|
|
|
stdlib-shims
|
|
|
|
];
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
# Tests need opam-monorepo
|
|
|
|
doCheck = false;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-01-05 17:05:55 +00:00
|
|
|
alcotest
|
|
|
|
];
|
2020-11-15 13:44:38 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|