nixpkgs-suyu/pkgs/development/ocaml-modules/mirage/default.nix

41 lines
727 B
Nix
Raw Normal View History

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