2006-09-21 21:54:08 +03:00
|
|
|
source common.sh
|
|
|
|
|
2011-10-11 00:32:34 +03:00
|
|
|
drvPath=$(nix-instantiate ./dependencies.nix)
|
2016-04-11 15:16:56 +03:00
|
|
|
outPath=$(nix-store -r $drvPath)
|
|
|
|
nix-push --dest $cacheDir $outPath
|
2006-09-21 21:54:08 +03:00
|
|
|
|
|
|
|
clearStore
|
|
|
|
clearProfiles
|
|
|
|
|
|
|
|
cat > $TEST_ROOT/foo.nixpkg <<EOF
|
2016-04-11 15:16:56 +03:00
|
|
|
NIXPKG1 - simple $system $drvPath $outPath file://$cacheDir
|
2006-09-21 21:54:08 +03:00
|
|
|
EOF
|
|
|
|
|
2011-10-11 00:32:34 +03: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 21:54:08 +03:00
|
|
|
|
|
|
|
clearProfiles
|
|
|
|
|
2011-10-11 00:32:34 +03: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
|