mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
41 lines
758 B
Nix
41 lines
758 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";
|
|
duneVersion = "3";
|
|
|
|
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";
|
|
};
|
|
}
|