summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/ocamlformat/default.nix
blob: 1a6a9ba7775282a53c7452267cd53707367a295c (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib, fetchurl, fetchzip, callPackage }:

let mkOCamlformat = callPackage ./generic.nix; in

# Older versions should be removed when their usage decrease
# This script scraps Github looking for OCamlformat's options and versions usage:
#  https://gist.github.com/Julow/110dc94308d6078225e0665e3eccd433

rec {
  ocamlformat_0_19_0 = mkOCamlformat {
    version = "0.19.0";
  };

  ocamlformat_0_20_0 = mkOCamlformat {
    version = "0.20.0";
  };

  ocamlformat_0_20_1 = mkOCamlformat {
    version = "0.20.1";
  };

  ocamlformat_0_21_0 = mkOCamlformat {
    version = "0.21.0";
  };

  ocamlformat_0_22_4 = mkOCamlformat {
    version = "0.22.4";
  };

  ocamlformat_0_23_0 = mkOCamlformat {
    version = "0.23.0";
  };

  ocamlformat_0_24_0 = mkOCamlformat {
    version = "0.24.0";
  };

  ocamlformat = ocamlformat_0_24_0;
}