@@ -35,14 +35,15 @@ data Distro
35
35
= Debian9
36
36
| Debian10
37
37
| Debian11
38
+ | Debian12
38
39
| Ubuntu1804
39
40
| Ubuntu2004
40
41
| Ubuntu2204
41
42
| Mint193
42
43
| Mint202
43
- | Fedora27
44
+ | Mint213
44
45
| Fedora33
45
- | Centos7
46
+ | Fedora40
46
47
| Rocky8
47
48
deriving (Eq , Enum , Bounded )
48
49
@@ -64,15 +65,15 @@ data GHC
64
65
= GHC948
65
66
| GHC967
66
67
| GHC984
67
- | GHC9101
68
+ | GHC9102
68
69
| GHC9122
69
70
deriving (Eq , Enum , Bounded )
70
71
71
72
ghcVersion :: GHC -> String
72
73
ghcVersion GHC948 = " 9.4.8"
73
74
ghcVersion GHC967 = " 9.6.7"
74
75
ghcVersion GHC984 = " 9.8.4"
75
- ghcVersion GHC9101 = " 9.10.1 "
76
+ ghcVersion GHC9102 = " 9.10.2 "
76
77
ghcVersion GHC9122 = " 9.12.2"
77
78
78
79
ghcVersionIdent :: GHC -> String
@@ -91,56 +92,60 @@ distroImage :: Distro -> String
91
92
distroImage Debian9 = " debian:9"
92
93
distroImage Debian10 = " debian:10"
93
94
distroImage Debian11 = " debian:11"
95
+ distroImage Debian12 = " debian:12"
94
96
distroImage Ubuntu1804 = " ubuntu:18.04"
95
97
distroImage Ubuntu2004 = " ubuntu:20.04"
96
98
distroImage Ubuntu2204 = " ubuntu:22.04"
97
99
distroImage Mint193 = " linuxmintd/mint19.3-amd64"
98
100
distroImage Mint202 = " linuxmintd/mint20.2-amd64"
99
- distroImage Fedora27 = " fedora:27 "
101
+ distroImage Mint213 = " linuxmintd/mint21.3-amd64 "
100
102
distroImage Fedora33 = " fedora:33"
101
- distroImage Centos7 = " centos:7 "
103
+ distroImage Fedora40 = " fedora:40 "
102
104
distroImage Rocky8 = " rockylinux:8"
103
105
104
106
distroName :: Distro -> String
105
107
distroName Debian9 = " deb9"
106
108
distroName Debian10 = " deb10"
107
109
distroName Debian11 = " deb11"
110
+ distroName Debian12 = " deb12"
108
111
distroName Ubuntu1804 = " ubuntu1804"
109
112
distroName Ubuntu2004 = " ubuntu2004"
110
113
distroName Ubuntu2204 = " ubuntu2204"
111
114
distroName Mint193 = " mint193"
112
115
distroName Mint202 = " mint202"
113
- distroName Fedora27 = " fedora27 "
116
+ distroName Mint213 = " mint213 "
114
117
distroName Fedora33 = " fedora33"
115
- distroName Centos7 = " centos7 "
118
+ distroName Fedora40 = " fedora40 "
116
119
distroName Rocky8 = " unknown"
117
120
118
121
distroInstall :: Distro -> String
119
122
distroInstall Debian9 = " sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list && sed -i 's|security.debian.org|archive.debian.org/|g' /etc/apt/sources.list && sed -i /-updates/d /etc/apt/sources.list && apt-get update && apt-get install -y"
120
123
distroInstall Debian10 = " apt-get update && apt-get install -y"
121
124
distroInstall Debian11 = " apt-get update && apt-get install -y"
125
+ distroInstall Debian12 = " apt-get update && apt-get install -y"
122
126
distroInstall Ubuntu1804 = " apt-get update && apt-get install -y"
123
127
distroInstall Ubuntu2004 = " apt-get update && apt-get install -y"
124
128
distroInstall Ubuntu2204 = " apt-get update && apt-get install -y"
125
129
distroInstall Mint193 = " apt-get update && apt-get install -y"
126
130
distroInstall Mint202 = " apt-get update && apt-get install -y"
127
- distroInstall Fedora27 = " dnf install -y"
131
+ distroInstall Mint213 = " apt-get update && apt-get install -y"
128
132
distroInstall Fedora33 = " dnf install -y"
129
- distroInstall Centos7 = " sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* && yum -y install epel-release && yum install -y"
133
+ distroInstall Fedora40 = " dnf install -y"
130
134
distroInstall Rocky8 = " yum -y install epel-release && yum install -y --allowerasing"
131
135
132
136
distroTools :: Distro -> String
133
137
distroTools Debian9 = " libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
134
138
distroTools Debian10 = " libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
135
139
distroTools Debian11 = " libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
140
+ distroTools Debian12 = " libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
136
141
distroTools Ubuntu1804 = " libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
137
142
distroTools Ubuntu2004 = " libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
138
143
distroTools Ubuntu2204 = " libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
139
144
distroTools Mint193 = " libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
140
145
distroTools Mint202 = " libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
141
- distroTools Fedora27 = " autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
146
+ distroTools Mint213 = " libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
142
147
distroTools Fedora33 = " autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
143
- distroTools Centos7 = " autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
148
+ distroTools Fedora40 = " autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
144
149
distroTools Rocky8 = " autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
145
150
146
151
-------------------------------------------------------------------------------
0 commit comments