44 lines
634 B
Nix
44 lines
634 B
Nix
{
|
|
lib,
|
|
gitSource,
|
|
|
|
buildDunePackage,
|
|
cstruct,
|
|
dune-configurator,
|
|
eio,
|
|
eio_linux,
|
|
eio_main,
|
|
ppx_unicode,
|
|
ptime,
|
|
xlog,
|
|
|
|
ocaml,
|
|
dune_3,
|
|
odoc,
|
|
utop,
|
|
|
|
withShell ? false
|
|
}:
|
|
buildDunePackage rec {
|
|
pname = "systemd";
|
|
version = "0.1.0";
|
|
src = gitSource { root = ./.; };
|
|
|
|
minimalOCamlVersion = "5.1";
|
|
dontStrip = true;
|
|
|
|
buildInputs = [
|
|
ppx_unicode
|
|
xlog
|
|
ptime
|
|
dune-configurator
|
|
cstruct
|
|
eio
|
|
eio_main
|
|
eio_linux
|
|
] ++ lib.optionals withShell [ utop ];
|
|
nativeBuildInputs = [ ppx_unicode dune-configurator ] ++ lib.optionals withShell [
|
|
ocaml dune_3 odoc utop
|
|
];
|
|
}
|