summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/pp/default.nix
blob: d6b94c0a6e2e11e82a8888f21eb9a337f9481799 (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
30
31
32
33
34
{
  lib,
  buildDunePackage,
  fetchurl,
  ppx_expect,
  version ? "2.0.0",
}:

buildDunePackage (finalAttrs: {
  pname = "pp";
  inherit version;

  src = fetchurl {
    url = "https://github.com/ocaml-dune/pp/releases/download/${finalAttrs.version}/pp-${finalAttrs.version}.tbz";
    hash =
      {
        "2.0.0" = "sha256-hlE1FRiwkrSi3vTggXHCdhUvkvtqhKixm2uSnM20RBk=";
        "1.2.0" = "sha256-pegiVzxVr7Qtsp7FbqzR8qzY9lzy3yh44pHeN0zmkJw=";
      }
      ."${finalAttrs.version}";
  };

  minimalOCamlVersion = "4.08";

  checkInputs = [ ppx_expect ];
  doCheck = true;

  meta = {
    description = "Alternative pretty printing library to the Format module of the OCaml standard library";
    license = lib.licenses.mit;
    platforms = lib.platforms.unix;
    maintainers = [ ];
  };
})