1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

* Allow redirections in search path entries. E.g. if you have a

directory

    /home/eelco/src/stdenv-updates

  that you want to use as the directory for import such as

    with (import <nixpkgs> { });

  then you can say

    $ nix-build -I nixpkgs=/home/eelco/src/stdenv-updates
This commit is contained in:
Eelco Dolstra 2011-08-06 17:48:57 +00:00
parent 1578b2261d
commit c7101dac0b
5 changed files with 28 additions and 9 deletions

View file

@ -213,8 +213,9 @@ private:
std::map<Path, Expr *> parseTrees;
Paths searchPath;
Paths::iterator searchPathInsertionPoint;
typedef list<std::pair<string, Path> > SearchPath;
SearchPath searchPath;
SearchPath::iterator searchPathInsertionPoint;
public: