at 22.05-pre 64 lines 1.3 kB view raw
1{ lib, fetchurl, fetchzip, callPackage }: 2 3let mkOCamlformat = callPackage ./generic.nix; in 4 5# Older versions should be removed when their usage decrease 6# This script scraps Github looking for OCamlformat's options and versions usage: 7# https://gist.github.com/Julow/110dc94308d6078225e0665e3eccd433 8 9rec { 10 ocamlformat_0_11_0 = mkOCamlformat { 11 version = "0.11.0"; 12 }; 13 14 ocamlformat_0_12 = mkOCamlformat { 15 version = "0.12"; 16 }; 17 18 ocamlformat_0_13_0 = mkOCamlformat rec { 19 version = "0.13.0"; 20 tarballName = "ocamlformat-${version}-2.tbz"; 21 }; 22 23 ocamlformat_0_14_0 = mkOCamlformat { 24 version = "0.14.0"; 25 }; 26 27 ocamlformat_0_14_1 = mkOCamlformat { 28 version = "0.14.1"; 29 }; 30 31 ocamlformat_0_14_2 = mkOCamlformat { 32 version = "0.14.2"; 33 }; 34 35 ocamlformat_0_14_3 = mkOCamlformat { 36 version = "0.14.3"; 37 }; 38 39 ocamlformat_0_15_0 = mkOCamlformat { 40 version = "0.15.0"; 41 }; 42 43 ocamlformat_0_15_1 = mkOCamlformat { 44 version = "0.15.1"; 45 }; 46 47 ocamlformat_0_16_0 = mkOCamlformat { 48 version = "0.16.0"; 49 }; 50 51 ocamlformat_0_17_0 = mkOCamlformat { 52 version = "0.17.0"; 53 }; 54 55 ocamlformat_0_18_0 = mkOCamlformat { 56 version = "0.18.0"; 57 }; 58 59 ocamlformat_0_19_0 = mkOCamlformat { 60 version = "0.19.0"; 61 }; 62 63 ocamlformat = ocamlformat_0_19_0; 64}