nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchpatch,
3 buildDunePackage,
4 ocf,
5 ppxlib,
6}:
7
8buildDunePackage {
9 pname = "ocf_ppx";
10 minimalOCamlVersion = "4.11";
11
12 inherit (ocf) src version;
13
14 patches = [
15 # Support for ppxlib ≥ 0.37
16 (fetchpatch {
17 url = "https://framagit.org/zoggy/ocf/-/commit/38b1f6420e5c01b3ea6b2fed99b6b62e4c848dc0.patch";
18 hash = "sha256-GymTdK/dOYGianvNIKkl9OhBGW+4dX5TqAkQuEF5FmA=";
19 includes = [ "*.ml" ];
20 })
21 ];
22
23 buildInputs = [
24 ppxlib
25 ocf
26 ];
27
28 meta = ocf.meta // {
29 description = "Preprocessor for Ocf library";
30 };
31}