mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
nix-channel: download arch-specific nix tarball
This commit is contained in:
parent
99f5043c3a
commit
839fad1783
@ -10,7 +10,7 @@ RUN pip3 install pyquery requests minio==6.0.2
|
|||||||
# Install Nix. To simplify management we only copy binaries and create
|
# Install Nix. To simplify management we only copy binaries and create
|
||||||
# symlinks, and do no further configuration
|
# symlinks, and do no further configuration
|
||||||
RUN mkdir -p /tmp/nix.unpack && \
|
RUN mkdir -p /tmp/nix.unpack && \
|
||||||
curl -L https://mirrors.tuna.tsinghua.edu.cn/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz | tar -xpJ -C /tmp/nix.unpack && \
|
curl -L https://mirrors.tuna.tsinghua.edu.cn/nix/nix-2.3.2/nix-2.3.2-$(arch)-linux.tar.xz | tar -xpJ -C /tmp/nix.unpack && \
|
||||||
mkdir /nix && \
|
mkdir /nix && \
|
||||||
cp -dpr /tmp/nix.unpack/*/store /nix/store && \
|
cp -dpr /tmp/nix.unpack/*/store /nix/store && \
|
||||||
ln -s /nix/store/*-nix-*/bin/* /usr/local/bin && \
|
ln -s /nix/store/*-nix-*/bin/* /usr/local/bin && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user