Skip to content

Commit 1e5637f

Browse files
authored
Update tool dependencies (#2188)
* nix: update haskell.nix * Dockerfile: parameterize over hlint and stylish-haskell versions * hlint: 3.1 -> 3.2 * z3: 4.6.0 -> 4.8.8 * Dockerfile: Don't install rust * Dockerfile: Remove -dev dependencies
1 parent 5adcc6d commit 1e5637f

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

.hlint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
- ignore: {name: "Use infix"}
8080
- ignore: {name: "Use section"}
8181
- ignore: {name: "Use <$>"}
82+
- ignore: {name: "Use <&>"}
8283
- ignore: {name: "Redundant flip"}
8384
- ignore: {name: "Monad law, left identity"}
8485
- ignore: {name: "Monoid law, left identity"}

Dockerfile

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,11 @@ RUN ln --symbolic --no-dereference --force /usr/share/zoneinfo/$TZ /etc/local
77
RUN apt update \
88
&& apt upgrade --yes \
99
&& apt install --yes \
10-
autoconf bison clang-6.0 cmake curl flex gcc git jq libboost-test-dev \
11-
libffi-dev libgmp-dev libjemalloc-dev libmpfr-dev libtool \
12-
libyaml-cpp-dev libz3-dev make maven opam openjdk-8-jdk pandoc \
13-
pkg-config python3 python-pygments python-recommonmark python-sphinx \
14-
time zlib1g-dev
15-
16-
RUN git clone 'https://github.com/z3prover/z3' --branch=z3-4.6.0 \
17-
&& cd z3 \
18-
&& python scripts/mk_make.py \
19-
&& cd build \
20-
&& make -j8 \
21-
&& make install \
22-
&& cd ../.. \
23-
&& rm -rf z3
10+
bison curl flex gcc git jq \
11+
make openjdk-8-jdk pandoc \
12+
libtinfo-dev \
13+
python3 python-pygments python-recommonmark python-sphinx \
14+
time unzip wget
2415

2516
RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
2617

@@ -34,18 +25,26 @@ RUN /home/user/.install-stack/install-stack.sh
3425

3526
USER $USER_ID:$GROUP_ID
3627

37-
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.28.0
38-
3928
ENV LC_ALL=C.UTF-8
4029

30+
ARG Z3=4.8.8
31+
RUN cd /home/user \
32+
&& wget https://github.com/Z3Prover/z3/releases/download/z3-$Z3/z3-$Z3-x64-ubuntu-16.04.zip \
33+
&& unzip z3-$Z3-x64-ubuntu-16.04.zip \
34+
&& rm z3-$Z3-x64-ubuntu-16.04.zip \
35+
&& mv z3-$Z3-x64-ubuntu-16.04 z3
36+
ENV PATH=/home/user/z3/bin:$PATH
37+
38+
ARG HLINT=3.2
4139
RUN cd /home/user \
42-
&& curl https://github.com/ndmitchell/hlint/releases/download/v3.1/hlint-3.1-x86_64-linux.tar.gz -sSfL | tar xzf - \
43-
&& mv hlint-3.1 hlint
40+
&& curl https://github.com/ndmitchell/hlint/releases/download/v$HLINT/hlint-$HLINT-x86_64-linux.tar.gz -sSfL | tar xzf - \
41+
&& mv hlint-$HLINT hlint
4442
ENV PATH=/home/user/hlint:$PATH
4543

44+
ARG STYLISH_HASKELL=0.11.0.0
4645
RUN cd /home/user \
47-
&& curl https://github.com/jaspervdj/stylish-haskell/releases/download/v0.11.0.0/stylish-haskell-v0.11.0.0-linux-x86_64.tar.gz -sSfL | tar xzf - \
48-
&& mv stylish-haskell-v0.11.0.0-linux-x86_64 stylish-haskell
46+
&& curl https://github.com/jaspervdj/stylish-haskell/releases/download/v$STYLISH_HASKELL/stylish-haskell-v$STYLISH_HASKELL-linux-x86_64.tar.gz -sSfL | tar xzf - \
47+
&& mv stylish-haskell-v$STYLISH_HASKELL-linux-x86_64 stylish-haskell
4948
ENV PATH=/home/user/stylish-haskell:$PATH
5049

5150
ADD --chown=user:user stack.yaml /home/user/.tmp-haskell/

nix/sources.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@
1717
"homepage": "https://input-output-hk.github.io/haskell.nix",
1818
"owner": "input-output-hk",
1919
"repo": "haskell.nix",
20-
"rev": "239d588fdc3d97f635c849d0f5c599ccb2f5a61a",
21-
"sha256": "1z4kmksjgshb2s441mjs7kyvra2ad0rjryzsbax06yc9r5vkqz0j",
20+
"rev": "33cd29ee330d34c8c99a9ce56fb3529b44cf3224",
21+
"sha256": "1jgwz2iahvn43w398aanm4djzjmr5a2hcv1ijzi9vh79circ7ffz",
2222
"type": "tarball",
23-
"url": "https://github.com/input-output-hk/haskell.nix/archive/239d588fdc3d97f635c849d0f5c599ccb2f5a61a.tar.gz",
23+
"url": "https://github.com/input-output-hk/haskell.nix/archive/33cd29ee330d34c8c99a9ce56fb3529b44cf3224.tar.gz",
2424
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
2525
},
2626
"hlint": {
27-
"branch": "master",
27+
"branch": "v3.2",
2828
"description": "Haskell source code suggestions",
2929
"homepage": null,
3030
"owner": "ndmitchell",
3131
"repo": "hlint",
32-
"rev": "6c24ec497bbea3c40717d0a83c27fe3dc4936023",
33-
"sha256": "02mg93psf34gcrffa9ghmvgszwcg0qw3bxhfzi39qp09m3vymc68",
32+
"rev": "b2fd3a720bba011bd77ed15bc4141b8fb996566e",
33+
"sha256": "1h2vi271y3c266b1hp1d18af8kr6nw6g1ys2k8v1cw5bjnm0rf7r",
3434
"type": "tarball",
35-
"url": "https://github.com/ndmitchell/hlint/archive/6c24ec497bbea3c40717d0a83c27fe3dc4936023.tar.gz",
35+
"url": "https://github.com/ndmitchell/hlint/archive/b2fd3a720bba011bd77ed15bc4141b8fb996566e.tar.gz",
3636
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz",
37-
"version": "v3.1.6"
37+
"version": "v3.2"
3838
},
3939
"niv": {
4040
"branch": "master",

0 commit comments

Comments
 (0)