ocamlPackages.mirage: fix build by adding missing deps

Previously the mirage library/package wouldn't be built/installed
correctly due to missing deps which I now added as specified in the opam
file. While I was at it, I also enabled tests.
This commit is contained in:
sternenseemann 2020-12-29 22:45:42 +01:00
parent e71df047a0
commit bca81534f0
1 changed files with 18 additions and 9 deletions

View File

@ -1,25 +1,34 @@
{ lib, buildDunePackage, ocaml { lib, buildDunePackage, alcotest
, functoria, mirage-runtime , functoria, mirage-runtime, bos
, ipaddr, astring, logs, stdlib-shims
}: }:
buildDunePackage rec { buildDunePackage rec {
pname = "mirage"; pname = "mirage";
inherit (mirage-runtime) version src; inherit (mirage-runtime) version src;
minimumOCamlVersion = "4.08";
useDune2 = true; useDune2 = true;
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
propagatedBuildInputs = [ functoria mirage-runtime ]; propagatedBuildInputs = [
ipaddr
functoria
mirage-runtime
bos
astring
logs
stdlib-shims
];
installPhase = '' doCheck = true;
runHook preInstall checkInputs = [
dune install --prefix=$out --libdir=$dev/lib/ocaml/${ocaml.version}/site-lib/ ${pname} alcotest
runHook postInstall ];
'';
meta = mirage-runtime.meta // { meta = mirage-runtime.meta // {
description = "The MirageOS library operating system"; description = "The MirageOS library operating system";
}; };
} }