summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ppx_derivers/default.nix
blob: 49217781b8acfe54758baf1a2b809b72c31b0560 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, fetchFromGitHub, buildDunePackage, ocaml }:

buildDunePackage (rec {
  pname = "ppx_derivers";
  version = "1.2.1";

  minimalOCamlVersion = "4.02";

  src = fetchFromGitHub {
    owner = "diml";
    repo = pname;
    rev = version;
    sha256 = "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn";
  };

  meta = {
    description = "Shared [@@deriving] plugin registry";
    license = lib.licenses.bsd3;
    maintainers = [ lib.maintainers.vbgl ];
    inherit (src.meta) homepage;
  };
} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") {
  duneVersion = "1";
})