lix/tests
Eelco Dolstra 62a6eeb1f3 Make the Nix search path declarative
Nix search path lookups like <nixpkgs> are now desugared to ‘findFile
nixPath <nixpkgs>’, where ‘findFile’ is a new primop. Thus you can
override the search path simply by saying

  let
    nixPath = [ { prefix = "nixpkgs"; path = "/my-nixpkgs"; } ];
  in ... <nixpkgs> ...

In conjunction with ‘scopedImport’ (commit
c273c15cb1), the Nix search path can be
propagated across imports, e.g.

  let

    overrides = {
      nixPath = [ ... ] ++ builtins.nixPath;
      import = fn: scopedImport overrides fn;
      scopedImport = attrs: fn: scopedImport (overrides // attrs) fn;
      builtins = builtins // overrides;
    };

  in scopedImport overrides ./nixos
2014-05-26 17:02:22 +02:00
..
lang Make the Nix search path declarative 2014-05-26 17:02:22 +02:00
add.sh
binary-cache.sh Test executables in NARs 2014-02-26 18:59:01 +01:00
binary-patching.nix
binary-patching.sh
build-hook.hook.sh
build-hook.nix
build-hook.sh
check-refs.nix
check-refs.sh
common.sh.in Add a test for repairing paths 2014-02-17 12:22:50 +01:00
config.nix
dependencies.builder0.sh Test executables in NARs 2014-02-26 18:59:01 +01:00
dependencies.builder1.sh
dependencies.builder2.sh
dependencies.nix
dependencies.sh
dump-db.sh Add a test for nix-store --dump-db / --load-db 2014-02-26 17:47:54 +01:00
export-graph.nix
export-graph.sh
export.sh
fallback.sh
fetchurl.nix
fetchurl.sh
filter-source.nix
filter-source.sh
fixed.builder1.sh
fixed.builder2.sh
fixed.nix
fixed.sh
gc-concurrent.builder.sh
gc-concurrent.nix
gc-concurrent.sh
gc-concurrent2.builder.sh
gc-runtime.nix
gc-runtime.sh
gc.sh Test nix-store -q --roots 2014-02-26 18:00:46 +01:00
hash-check.nix
hash.sh
import-derivation.nix
import-derivation.sh
init.sh Fix Debian tests 2014-05-02 19:02:10 +02:00
install-package.sh
lang.sh Add constant ‘nixPath’ 2014-05-26 14:55:47 +02:00
local.mk Disable parallel.sh test 2014-05-22 11:38:50 +02:00
logging.sh Test nix-store -l 2014-02-26 17:58:53 +01:00
misc.sh nix-instantiate: Rename --eval-only to --eval, --parse-only to --parse 2014-02-19 16:34:24 +01:00
multiple-outputs.nix
multiple-outputs.sh
negative-caching.nix
negative-caching.sh
nix-build.sh
nix-channel.sh
nix-copy-closure.nix Fix test evaluation 2014-04-15 15:32:27 +02:00
nix-profile.sh
nix-pull.sh
nix-push.sh
optimise-store.sh Test nix-store --optimise 2014-02-26 17:53:51 +01:00
parallel.builder.sh
parallel.nix
parallel.sh
referrers.sh
remote-builds.nix Fix test evaluation 2014-04-15 15:32:27 +02:00
remote-store.sh Doh 2014-02-26 22:41:29 +01:00
repair.sh Test nix-store --verify-path and --repair-path 2014-02-17 23:24:12 +01:00
secure-drv-outputs.nix
secure-drv-outputs.sh
simple.builder.sh
simple.nix
simple.sh
substituter.sh
substituter2.sh
substitutes.sh
substitutes2.sh
timeout.builder.sh
timeout.nix
timeout.sh
user-envs.builder.sh
user-envs.nix
user-envs.sh Test nix-env --switch-generation 2014-02-26 18:45:26 +01:00