mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
nix-env: Ignore manifest.nix when recursing into ~/.nix-defexpr
Channels are implemented using a profile now, and profiles contain a manifest.nix file. This should be ignored to prevent bogus packages from showing up in nix-env.
This commit is contained in:
parent
46f852cda0
commit
ca94b38371
1 changed files with 5 additions and 0 deletions
|
@ -112,6 +112,11 @@ static void getAllExprs(EvalState & state,
|
||||||
StringSet namesSorted(names.begin(), names.end());
|
StringSet namesSorted(names.begin(), names.end());
|
||||||
|
|
||||||
foreach (StringSet::iterator, i, namesSorted) {
|
foreach (StringSet::iterator, i, namesSorted) {
|
||||||
|
/* Ignore the manifest.nix used by profiles. This is
|
||||||
|
necessary to prevent it from showing up in channels (which
|
||||||
|
are implemented using profiles). */
|
||||||
|
if (*i == "manifest.nix") continue;
|
||||||
|
|
||||||
Path path2 = path + "/" + *i;
|
Path path2 = path + "/" + *i;
|
||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
Loading…
Reference in a new issue