1 # Adapted from lib/tests/release.nix
3 , pkgs ? import pkgs-path {}
9 # This verifies that release-attrpaths-superset.nix does not encounter
10 # infinite recursion or non-tryEval-able failures.
12 pkgs.runCommand "all-attrs-eval-under-tryEval" {
16 ] ++ lib.optional pkgs.stdenv.hostPlatform.isLinux pkgs.inotify-tools;
19 src = with lib.fileset; toSource {
33 datadir="${nix}/share"
34 export TEST_ROOT=$(pwd)/test-tmp
35 export HOME=$(mktemp -d)
36 export NIX_BUILD_HOOK=
37 export NIX_CONF_DIR=$TEST_ROOT/etc
38 export NIX_LOCALSTATE_DIR=$TEST_ROOT/var
39 export NIX_LOG_DIR=$TEST_ROOT/var/log/nix
40 export NIX_STATE_DIR=$TEST_ROOT/var/nix
41 export NIX_STORE_DIR=$TEST_ROOT/store
43 cacheDir=$TEST_ROOT/binary-cache
47 echo "Running pkgs/top-level/release-attrpaths-superset.nix"
48 nix-instantiate --eval --strict --json $src/pkgs/top-level/release-attrpaths-superset.nix -A names > /dev/null
51 echo success > $out/${nix.version}