Files
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
..
2014-05-26 17:02:22 +02:00
2014-02-26 18:59:01 +01:00
2013-10-17 11:18:37 +02:00
2014-02-17 12:22:50 +01:00
2014-02-26 18:00:46 +01:00
2006-07-21 13:21:43 +00:00
2014-05-02 19:02:10 +02:00
2014-05-26 14:55:47 +02:00
2014-05-22 11:38:50 +02:00
2014-02-26 17:58:53 +01:00
2014-04-15 15:32:27 +02:00
2014-02-01 15:37:50 +01:00
2012-09-12 11:29:10 -04:00
2014-02-26 17:53:51 +01:00
2014-02-06 13:54:44 +01:00
2014-04-15 15:32:27 +02:00
Doh
2014-02-26 22:41:29 +01:00
2007-08-13 13:15:02 +00:00
2013-09-02 12:44:30 +02:00
2012-12-04 14:47:50 +01:00
2012-12-04 14:47:50 +01:00
2014-02-26 18:45:26 +01:00