about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/ocaml-syntax-shims/default.nix
blob: 374efd8b2b97f105a4ecc68d5c79159b2699c7f1 (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, buildDunePackage, fetchurl }:

buildDunePackage rec {
  minimumOCamlVersion = "4.02.3";

  pname = "ocaml-syntax-shims";
  version = "1.0.0";

  src = fetchurl {
    url = "https://github.com/ocaml-ppx/${pname}/releases/download/${version}/${pname}-${version}.tbz";
    sha256 = "1j7848khli4p7j8i2kmnvhdnhcwhy3zgdpf5ds5ic30ax69y3cl9";
  };

  useDune2 = true;

  doCheck = true;

  meta = with lib; {
    homepage = "https://github.com/ocaml-ppx/ocaml-syntax-shims";
    description = "Backport new syntax to older OCaml versions";
    license = licenses.mit;
    maintainers = with maintainers; [ sternenseemann ];
  };
}