2024-04-23 02:36:13 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
mkShell,
|
|
|
|
|
|
|
|
buildDunePackage,
|
|
|
|
ptime,
|
2024-04-23 17:58:01 +00:00
|
|
|
ppxlib,
|
2024-04-23 02:36:13 +00:00
|
|
|
|
|
|
|
ocaml,
|
|
|
|
dune_3,
|
|
|
|
odoc,
|
|
|
|
utop,
|
|
|
|
|
|
|
|
enableShell ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
sourceRoot = ./.;
|
|
|
|
fs = lib.fileset;
|
|
|
|
sourceFiles = fs.difference
|
|
|
|
(fs.gitTracked sourceRoot)
|
|
|
|
(fs.fileFilter (file: file.hasExt "nix") sourceRoot);
|
|
|
|
sourceSet = fs.toSource { root = sourceRoot; fileset = sourceFiles; };
|
|
|
|
in buildDunePackage rec {
|
|
|
|
pname = "xlog";
|
|
|
|
version = "0.0.1";
|
|
|
|
src = sourceSet;
|
|
|
|
|
|
|
|
minimalOCamlVersion = "5.1";
|
|
|
|
dontStrip = true;
|
|
|
|
|
2024-04-23 18:01:58 +00:00
|
|
|
buildInputs = [ ppxlib ];
|
|
|
|
propagatedBuildInputs = [ ptime ];
|
2024-04-23 02:36:13 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = lib.optionals enableShell [
|
|
|
|
ocaml dune_3 odoc utop
|
|
|
|
];
|
|
|
|
}
|