mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
* Compatibility hack with older user environments.
This commit is contained in:
parent
8a3a96dd5b
commit
74ab0695b5
1 changed files with 3 additions and 1 deletions
|
@ -197,7 +197,9 @@ static void createUserEnv(EvalState & state, const UserEnvElems & elems,
|
|||
PathSet drvsToBuild;
|
||||
for (UserEnvElems::const_iterator i = elems.begin();
|
||||
i != elems.end(); ++i)
|
||||
if (i->second.drvPath != "")
|
||||
/* Call to `isDerivation' is for compatibility with Nix <= 0.7
|
||||
user environments. */
|
||||
if (i->second.drvPath != "" && isDerivation(i->second.drvPath))
|
||||
drvsToBuild.insert(i->second.drvPath);
|
||||
|
||||
debug(format("building user environment dependencies"));
|
||||
|
|
Loading…
Reference in a new issue