nixpkgs/pkgs/development/ocaml-modules/mirage/default.nix
sternenseemann caf07b0ebf ocamlPackages.mirage: reintroduce dev output
The changed dune install directive to install libraries to the dev
output was removed by mistake.
2020-12-30 17:52:00 +01:00

41 lines
727 B
Nix

{ lib, buildDunePackage, ocaml, alcotest
, functoria, mirage-runtime, bos
, ipaddr, astring, logs, stdlib-shims
}:
buildDunePackage rec {
pname = "mirage";
inherit (mirage-runtime) version src;
minimumOCamlVersion = "4.08";
useDune2 = true;
outputs = [ "out" "dev" ];
propagatedBuildInputs = [
ipaddr
functoria
mirage-runtime
bos
astring
logs
stdlib-shims
];
doCheck = true;
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";
};
}