2024-04-25 06:26:41 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
mkShell,
|
|
|
|
|
|
|
|
buildDunePackage,
|
|
|
|
ppxlib,
|
|
|
|
uunf,
|
|
|
|
|
|
|
|
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 = "ppx_unicode";
|
2024-04-25 06:53:01 +00:00
|
|
|
version = "0.1.0";
|
2024-04-25 06:26:41 +00:00
|
|
|
src = sourceSet;
|
|
|
|
|
|
|
|
minimalOCamlVersion = "5.1";
|
|
|
|
dontStrip = true;
|
|
|
|
|
2024-04-25 06:53:01 +00:00
|
|
|
propagatedBuildInputs = [ ppxlib uunf ];
|
2024-04-25 06:26:41 +00:00
|
|
|
|
2024-04-25 06:53:01 +00:00
|
|
|
nativeBuildInputs = [ ppxlib ] ++ lib.optionals enableShell [
|
2024-04-25 06:26:41 +00:00
|
|
|
ocaml dune_3 odoc utop
|
|
|
|
];
|
|
|
|
}
|