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.isLinux pkgs.inotify-tools;
20 datadir="${nix}/share"
21 export TEST_ROOT=$(pwd)/test-tmp
22 export HOME=$(mktemp -d)
23 export NIX_BUILD_HOOK=
24 export NIX_CONF_DIR=$TEST_ROOT/etc
25 export NIX_LOCALSTATE_DIR=$TEST_ROOT/var
26 export NIX_LOG_DIR=$TEST_ROOT/var/log/nix
27 export NIX_STATE_DIR=$TEST_ROOT/var/nix
28 export NIX_STORE_DIR=$TEST_ROOT/store
30 cacheDir=$TEST_ROOT/binary-cache
34 cp -r ${pkgs-path}/lib lib
35 cp -r ${pkgs-path}/pkgs pkgs
36 cp -r ${pkgs-path}/default.nix default.nix
37 cp -r ${pkgs-path}/nixos nixos
38 cp -r ${pkgs-path}/maintainers maintainers
39 cp -r ${pkgs-path}/.version .version
40 cp -r ${pkgs-path}/doc doc
41 echo "Running pkgs/top-level/release-attrpaths-superset.nix"
42 nix-instantiate --eval --strict --json pkgs/top-level/release-attrpaths-superset.nix -A names > /dev/null
45 echo success > $out/${nix.version}