nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildDunePackage,
3 xtmpl,
4 ppxlib,
5}:
6
7buildDunePackage {
8 pname = "xtmpl_ppx";
9
10 inherit (xtmpl) src version;
11
12 # Fix for ppxlib ≥ 0.37
13 postPatch = ''
14 substituteInPlace ppx/ppx_xtmpl.ml --replace-fail 'Parse.longident b' \
15 'Astlib.Longident.parse s'
16 '';
17
18 buildInputs = [
19 ppxlib
20 xtmpl
21 ];
22
23 meta = xtmpl.meta // {
24 description = "Xml templating library, ppx extension";
25 };
26}