2
2
FROM debian:stable-slim
3
3
4
4
ARG NIX_VERSION
5
- ENV NIX_VERSION ${NIX_VERSION:-2.2 .1}
5
+ ENV NIX_VERSION ${NIX_VERSION:-2.3 .1}
6
6
ARG LANG
7
7
ENV LANG ${LANG:-"en_US.UTF-8" }
8
8
9
9
RUN addgroup --gid 30000 --system nixbld \
10
10
&& for i in $(seq 1 30); do adduser --system --disabled-password --home /var/empty --gecos "Nix build user $i" --uid $((30000 + i)) --ingroup nixbld nixbld$i ; done \
11
11
&& adduser --disabled-password nixuser \
12
12
&& mkdir -m 0755 /nix && chown nixuser /nix \
13
- && apt update && apt install -y wget bzip2 \
13
+ && apt update && apt install -y wget xz-utils \
14
14
&& apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
15
15
# sandboxing enabled by default since 2.2
16
16
&& mkdir -p /etc/nix && echo 'sandbox = false' > /etc/nix/nix.conf
@@ -19,8 +19,8 @@ USER nixuser
19
19
ENV USER=nixuser
20
20
ENV HOME="/home/nixuser"
21
21
22
- RUN cd && wget https://nixos.org/releases/nix/nix-$NIX_VERSION/nix-$NIX_VERSION-x86_64-linux.tar.bz2 \
23
- && tar xjf nix-*-x86_64-linux.tar.bz2 \
22
+ RUN cd && wget https://nixos.org/releases/nix/nix-$NIX_VERSION/nix-$NIX_VERSION-x86_64-linux.tar.xz \
23
+ && tar xJf nix-*-x86_64-linux.tar.xz \
24
24
&& ~/nix-*-x86_64-linux/install \
25
25
&& rm -rf ~/nix-*-*
26
26
@@ -29,7 +29,7 @@ RUN echo ". ${ENV}" >> ${HOME}/.profile
29
29
# All subsequent "RUN" will use a login shell
30
30
SHELL ["/usr/bin/env" , "bash" , "-l" , "-c" ]
31
31
32
- RUN nix-channel --add https://nixos.org/channels/nixpkgs-19.03 -darwin nixpkgs \
32
+ RUN nix-channel --add https://nixos.org/channels/nixpkgs-19.09 -darwin nixpkgs \
33
33
&& nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable \
34
34
&& nix-channel --update
35
35
0 commit comments