2020-10-14 15:19:25 +01:00
|
|
|
{ lib, fetchurl, fetchzip, callPackage }:
|
2018-10-22 11:03:33 +01:00
|
|
|
|
2020-10-14 15:19:25 +01:00
|
|
|
let mkOCamlformat = callPackage ./generic.nix; in
|
2020-09-22 06:30:35 +01:00
|
|
|
|
|
|
|
# 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
|
2018-10-22 11:03:33 +01:00
|
|
|
|
2020-09-22 06:30:35 +01:00
|
|
|
rec {
|
2020-10-14 15:19:25 +01:00
|
|
|
ocamlformat_0_11_0 = mkOCamlformat {
|
2020-09-22 06:30:35 +01:00
|
|
|
version = "0.11.0";
|
2018-10-22 11:03:33 +01:00
|
|
|
};
|
2020-09-22 06:30:35 +01:00
|
|
|
|
|
|
|
ocamlformat_0_12 = mkOCamlformat {
|
|
|
|
version = "0.12";
|
|
|
|
};
|
|
|
|
|
|
|
|
ocamlformat_0_13_0 = mkOCamlformat rec {
|
|
|
|
version = "0.13.0";
|
|
|
|
tarballName = "ocamlformat-${version}-2.tbz";
|
|
|
|
};
|
|
|
|
|
|
|
|
ocamlformat_0_14_0 = mkOCamlformat {
|
|
|
|
version = "0.14.0";
|
|
|
|
};
|
|
|
|
|
|
|
|
ocamlformat_0_14_1 = mkOCamlformat {
|
|
|
|
version = "0.14.1";
|
|
|
|
};
|
|
|
|
|
|
|
|
ocamlformat_0_14_2 = mkOCamlformat {
|
|
|
|
version = "0.14.2";
|
2020-10-14 15:19:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
ocamlformat_0_14_3 = mkOCamlformat {
|
|
|
|
version = "0.14.3";
|
2020-09-22 06:30:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
ocamlformat_0_15_0 = mkOCamlformat {
|
|
|
|
version = "0.15.0";
|
|
|
|
};
|
|
|
|
|
|
|
|
ocamlformat = ocamlformat_0_15_0;
|
2018-10-22 11:03:33 +01:00
|
|
|
}
|