mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
caf07b0ebf
The changed dune install directive to install libraries to the dev output was removed by mistake.
41 lines
727 B
Nix
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";
|
|
};
|
|
}
|