xlog/package.nix

33 lines
526 B
Nix

{
lib,
mkShell,
gitSource,
buildDunePackage,
ptime,
ppxlib,
ppx_unicode,
ocaml,
dune_3,
odoc,
utop,
enableShell ? false
}:
buildDunePackage rec {
pname = "xlog";
version = "0.0.2";
src = gitSource { root = ./.; };
minimalOCamlVersion = "5.1";
dontStrip = true;
buildInputs = [ ppx_unicode ] ++ lib.optionals enableShell [ utop ];
propagatedBuildInputs = [ ptime ppxlib ];
nativeBuildInputs = [ ppxlib ppx_unicode ] ++ lib.optionals enableShell [
ocaml dune_3 odoc utop
];
}