mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Test building
This commit is contained in:
parent
cc6e312315
commit
fe958a682d
1 changed files with 5 additions and 2 deletions
|
@ -146,7 +146,7 @@ let
|
||||||
|
|
||||||
echo "Testing Nix installation..."
|
echo "Testing Nix installation..."
|
||||||
# FIXME: should update ~/.bashrc.
|
# FIXME: should update ~/.bashrc.
|
||||||
$ssh "
|
$ssh <<EOF
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# FIXME: get rid of this; ideally ssh should just work.
|
# FIXME: get rid of this; ideally ssh should just work.
|
||||||
|
@ -157,7 +157,10 @@ let
|
||||||
|
|
||||||
nix-env --version
|
nix-env --version
|
||||||
nix --extra-experimental-features nix-command store ping
|
nix --extra-experimental-features nix-command store ping
|
||||||
"
|
|
||||||
|
out=\$(nix-build --no-substitute -E 'derivation { name = "foo"; system = "x86_64-linux"; builder = "/bin/sh"; args = ["-c" "echo foobar > \$out"]; }')
|
||||||
|
[[ \$(cat \$out) = foobar ]]
|
||||||
|
EOF
|
||||||
|
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
touch $out
|
touch $out
|
||||||
|
|
Loading…
Reference in a new issue