add ocamlPackages.ppx_unicode

This commit is contained in:
xenia 2024-04-25 02:33:47 -04:00
parent 3f560c00a3
commit 2f5f5d2858
3 changed files with 27 additions and 0 deletions

View File

@ -101,6 +101,10 @@ the service user and group
a variant of ghidra built with a headless openjdk, intended to reduce closure size for server
operation
### [`ocamlPackages.ppx_unicode`](./pkgs/ocaml/ppx_unicode)
opinionated ppx for string literals: <https://git.lain.faith/haskal/ppx_unicode>
### [`ocamlPackages.xlog`](./pkgs/ocaml/xlog)
logging for cats, in ocaml: <https://git.lain.faith/haskal/xlog>

View File

@ -14,6 +14,7 @@
};
ocamlPackages = prev.ocamlPackages.overrideScope (ofinal: oprev: {
ppx_unicode = ofinal.callPackage ./pkgs/ocaml/ppx_unicode {};
xlog = ofinal.callPackage ./pkgs/ocaml/xlog {};
});

View File

@ -0,0 +1,22 @@
{
fetchgit,
buildDunePackage,
ppxlib,
uunf
}:
buildDunePackage rec {
pname = "ppx_unicode";
version = "0.0.1";
src = fetchgit {
url = "https://git.lain.faith/haskal/ppx_unicode.git";
rev = version;
hash = "sha256-Dlx9NKNG6txRhjNC9Nih5mTvOVoQS9olMdItmibb3fI=";
};
minimalOcamlVersion = "5.1";
dontStrip = true;
buildInputs = [ ppxlib uunf ];
}