af34e3be8c
ocamlPackages.alcotest: 1.5.0 → 1.6.0 ocamlPackages.crowbar: 0.2 → 0.2.1 ocamlPackages.dune-release: 1.5.1 → 1.6.2 ocamlPackages.functoria: 3.1.1 → 4.2.0 ocamlPackages.mirage: 3.10.7 → 4.2.0 ocamlPackages.irmin-pack: disable checks ocamlPackages.mdx: disable checks ocamlPackages.git-unix: mark as broken
39 lines
737 B
Nix
39 lines
737 B
Nix
{ lib, buildDunePackage, ocaml, alcotest
|
|
, functoria, mirage-runtime, bos
|
|
, ipaddr, astring, logs, stdlib-shims
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mirage";
|
|
inherit (mirage-runtime) version src;
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
propagatedBuildInputs = [
|
|
ipaddr
|
|
functoria
|
|
mirage-runtime
|
|
bos
|
|
astring
|
|
logs
|
|
stdlib-shims
|
|
];
|
|
|
|
# Tests need opam-monorepo
|
|
doCheck = false;
|
|
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";
|
|
};
|
|
}
|