systemd-ml/package.nix

44 lines
634 B
Nix
Raw Normal View History

2024-09-24 08:23:56 +00:00
{
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.0.1";
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
];
}