Files
lix/tests/lang
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
..
2006-03-01 16:26:13 +00:00
2006-05-02 11:20:55 +00:00
2007-01-29 14:23:09 +00:00
2006-10-17 11:16:02 +00:00
2011-07-06 10:58:53 +00:00
2011-07-06 10:58:53 +00:00
2006-03-01 16:26:13 +00:00
2013-12-31 20:59:49 +00:00
2013-12-31 20:59:49 +00:00
2014-02-26 19:08:44 +01:00
2014-02-26 19:08:44 +01:00
2014-02-26 19:08:44 +01:00
2014-02-26 19:08:44 +01:00
2006-03-01 16:26:13 +00:00
2008-02-05 13:25:18 +00:00
2004-10-27 12:41:53 +00:00
2006-03-01 16:26:13 +00:00
2006-05-02 11:15:04 +00:00
2006-05-02 11:20:55 +00:00
2013-11-19 00:04:11 +01:00
2013-11-19 00:04:11 +01:00
2010-05-07 14:46:47 +00:00
2010-05-07 14:46:47 +00:00
2010-05-07 14:46:47 +00:00
2014-02-26 19:08:44 +01:00
2014-02-26 19:08:44 +01:00
2010-03-23 14:51:32 +00:00
2014-05-26 14:26:29 +02:00
2014-05-26 14:26:29 +02:00
2014-02-26 19:08:44 +01:00
2004-10-27 12:41:53 +00:00
2006-08-16 10:29:43 +00:00
2004-10-27 12:41:53 +00:00