-
Notifications
You must be signed in to change notification settings - Fork 320
/
Copy pathhaskell.yaml
45 lines (45 loc) · 1.19 KB
/
haskell.yaml
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
40
41
42
43
44
45
compilers:
haskell:
ghc:
type: tarballs
compression: xz
dir: ghc-{name}
url: https://downloads.haskell.org/~ghc/{name}/ghc-{name}-x86_64-deb{deb}-linux.tar.xz
check_exe: bin/ghc --version
deb: 8
after_stage_script:
- mkdir install
- cd {dir}
# ghc needs to be built "as if" it's about to land in the destination
- ./configure --prefix={destination}/{dir}
# ...but we "dest" to somewhere in staging.
- make install DESTDIR=`cd ../install && pwd`
- cd ..
- rm -rf {dir}
# ...and then we undo this so the staging dir is just staging/{dir}
- mv install/{destination}/{dir} {dir}
- rm -rf install
targets:
- 8.0.2
- 8.2.2
- 8.4.1
- 8.4.2
- 8.4.3
- 8.4.4
- 8.6.1
- 8.6.2
- 8.6.3
- name: 8.10.5
deb: 10
- name: 9.0.1
deb: 10
- name: 9.2.1
deb: 10
- name: 9.2.2
deb: 10
- name: 9.4.5
deb: 10
dir: ghc-{name}-x86_64-unknown-linux
- name: 9.6.1
deb: 10
dir: ghc-{name}-x86_64-unknown-linux