ppx_unicode/package.nix

39 lines
651 B
Nix
Raw Normal View History

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";
version = "0.0.1";
src = sourceSet;
minimalOCamlVersion = "5.1";
dontStrip = true;
buildInputs = [ ppxlib uunf ];
propagatedBuildInputs = [ ];
nativeBuildInputs = lib.optionals enableShell [
ocaml dune_3 odoc utop
];
}