2020-12-30 15:08:40 +00:00
|
|
|
{ lib, buildDunePackage, ocaml, alcotest
|
2020-12-29 21:45:42 +00:00
|
|
|
, functoria, mirage-runtime, bos
|
|
|
|
, ipaddr, astring, logs, stdlib-shims
|
2020-11-06 20:55:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "mirage";
|
|
|
|
inherit (mirage-runtime) version src;
|
|
|
|
|
2022-09-05 14:54:37 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-02-24 06:20:50 +00:00
|
|
|
duneVersion = "3";
|
2020-11-06 20:55:22 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-12-29 21:45:42 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipaddr
|
|
|
|
functoria
|
|
|
|
mirage-runtime
|
|
|
|
bos
|
|
|
|
astring
|
|
|
|
logs
|
|
|
|
stdlib-shims
|
|
|
|
];
|
2020-11-06 20:55:22 +00:00
|
|
|
|
2022-09-05 14:54:37 +00:00
|
|
|
# Tests need opam-monorepo
|
|
|
|
doCheck = false;
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [
|
2020-12-29 21:45:42 +00:00
|
|
|
alcotest
|
|
|
|
];
|
2020-11-06 20:55:22 +00:00
|
|
|
|
2020-12-30 15:08:40 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
dune install --prefix=$out --libdir=$dev/lib/ocaml/${ocaml.version}/site-lib/ ${pname}
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2020-11-06 20:55:22 +00:00
|
|
|
meta = mirage-runtime.meta // {
|
|
|
|
description = "The MirageOS library operating system";
|
|
|
|
};
|
|
|
|
}
|