aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/irmin/ppx.nix
blob: 35aa659fbc8a1deaa1f1c70755b0322e955fc3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, fetchurl, buildDunePackage, ppxlib, ocaml-syntax-shims }:

buildDunePackage rec {
  pname = "ppx_irmin";
  version = "2.2.0";

  src = fetchurl {
    url = "https://github.com/mirage/irmin/releases/download/${version}/irmin-${version}.tbz";
    sha256 = "0gzw918b661qkvd140hilww9jsc49rxsxz1k4iihyvikjn202km4";
  };

  minimumOCamlVersion = "4.06";

  useDune2 = true;

  buildInputs = [ ocaml-syntax-shims ];
  propagatedBuildInputs = [ ppxlib ];

  # tests depend on irmin, would create mutual dependency
  # opt to test irmin instead of ppx_irmin
  doCheck = false;

  meta = {
    homepage = "https://irmin.org/";
    description = "PPX deriver for Irmin generics";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
  };
}