File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 196196RUN <<EOF
197197sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon --yes
198198
199- # Verify the installation. Should be run from a new shell.
200- bash -c 'nix --version'
199+ # Source the nix daemon script to make nix available in the current shell.
200+ . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
201+
202+ # Verify the installation.
203+ nix --version
201204EOF
202205
203206# Set the Conan home directory, so the users of this image can find the default
@@ -348,3 +351,4 @@ cd test && ./run.sh clang
348351cd ..
349352rm -rf test
350353EOF
354+
Original file line number Diff line number Diff line change 312312RUN <<EOF
313313sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon --yes
314314
315- # Verify the installation. Should be run from a new shell.
316- bash -c 'nix --version'
315+ # Source the nix daemon script to make nix available in the current shell.
316+ . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
317+
318+ # Verify the installation.
319+ nix --version
317320EOF
318321
319322# Set the Conan home directory, so the users of this image can find the default
@@ -350,3 +353,4 @@ cd test && ./run.sh clang
350353cd ..
351354rm -rf test
352355EOF
356+
Original file line number Diff line number Diff line change 169169RUN <<EOF
170170sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon --yes
171171
172- # Verify the installation. Should be run from a new shell.
173- bash -c 'nix --version'
172+ # Source the nix daemon script to make nix available in the current shell.
173+ . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
174+
175+ # Verify the installation.
176+ nix --version
174177EOF
175178
176179# Set the Conan home directory, so the users of this image can find the default
@@ -316,3 +319,4 @@ cd test && ./run.sh clang
316319cd ..
317320rm -rf test
318321EOF
322+
You can’t perform that action at this time.
0 commit comments