2006-09-21 20:54:08 +02:00
|
|
|
source common.sh
|
|
|
|
|
2011-10-10 23:32:34 +02:00
|
|
|
drvPath=$(nix-instantiate ./dependencies.nix)
|
2016-04-11 14:16:56 +02:00
|
|
|
outPath=$(nix-store -r $drvPath)
|
|
|
|
nix-push --dest $cacheDir $outPath
|
2006-09-21 20:54:08 +02:00
|
|
|
|
|
|
|
clearStore
|
|
|
|
clearProfiles
|
|
|
|
|
|
|
|
cat > $TEST_ROOT/foo.nixpkg <<EOF
|
2016-04-11 14:16:56 +02:00
|
|
|
NIXPKG1 - simple $system $drvPath $outPath file://$cacheDir
|
2006-09-21 20:54:08 +02:00
|
|
|
EOF
|
|
|
|
|
2011-10-10 23:32:34 +02:00
|
|
|
nix-install-package --non-interactive -p $profiles/test $TEST_ROOT/foo.nixpkg
|
|
|
|
test "$(nix-env -p $profiles/test -q '*' | wc -l)" -eq 1
|
2006-09-21 20:54:08 +02:00
|
|
|
|
|
|
|
clearProfiles
|
|
|
|
|
2011-10-10 23:32:34 +02:00
|
|
|
nix-install-package --non-interactive -p $profiles/test --url file://$TEST_ROOT/foo.nixpkg
|
|
|
|
test "$(nix-env -p $profiles/test -q '*' | wc -l)" -eq 1
|