lix/src
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
..
boost boost::shared_ptr -> std::shared_ptr 2014-03-30 00:49:23 +01:00
bsdiff-4.3 Fix "make dist" 2014-02-01 14:38:12 +01:00
download-via-ssh Simplify getting use-ssh-substituter from untrusted users 2014-02-26 13:58:46 +01:00
libexpr Make the Nix search path declarative 2014-05-26 17:02:22 +02:00
libmain Ugly hack to allow --argstr values starting with a dash 2014-05-23 14:43:58 +02:00
libstore nix-store -l: Fetch build logs from the Internet 2014-05-21 17:19:36 +02:00
libutil nix-store -l: Fetch build logs from the Internet 2014-05-21 17:19:36 +02:00
nix-daemon Fix compile errors on Illumos 2014-04-03 17:39:57 +02:00
nix-env Ensure that -I flags get included in nixPath 2014-05-26 16:52:31 +02:00
nix-hash Remove Automakefiles 2014-02-01 13:54:38 +01:00
nix-instantiate Ensure that -I flags get included in nixPath 2014-05-26 16:52:31 +02:00
nix-log2xml Remove Automakefiles 2014-02-01 13:54:38 +01:00
nix-store nix-store -l: Fetch build logs from the Internet 2014-05-21 17:19:36 +02:00