aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/profile.cc6
-rw-r--r--src/nix/sigs.cc3
-rw-r--r--src/nix/why-depends.cc2
3 files changed, 6 insertions, 5 deletions
diff --git a/src/nix/profile.cc b/src/nix/profile.cc
index 614a37eba..8a0f06435 100644
--- a/src/nix/profile.cc
+++ b/src/nix/profile.cc
@@ -205,12 +205,14 @@ struct ProfileManifest
.method = FileIngestionMethod::Recursive,
.hash = narHash,
},
- .references = { references },
+ .references = {
+ .others = std::move(references),
+ .self = false,
+ },
},
},
narHash,
};
- info.references = std::move(references);
info.narSize = sink.s.size();
StringSource source(sink.s);
diff --git a/src/nix/sigs.cc b/src/nix/sigs.cc
index a08314a25..3d659d6d2 100644
--- a/src/nix/sigs.cc
+++ b/src/nix/sigs.cc
@@ -63,8 +63,7 @@ struct CmdCopySigs : StorePathsCommand
binary. */
if (info->narHash != info2->narHash ||
info->narSize != info2->narSize ||
- info->references != info2->references ||
- info->hasSelfReference != info2->hasSelfReference)
+ info->references != info2->references)
continue;
for (auto & sig : info2->sigs)
diff --git a/src/nix/why-depends.cc b/src/nix/why-depends.cc
index 76125e5e4..33cd13600 100644
--- a/src/nix/why-depends.cc
+++ b/src/nix/why-depends.cc
@@ -136,7 +136,7 @@ struct CmdWhyDepends : SourceExprCommand
for (auto & path : closure)
graph.emplace(path, Node {
.path = path,
- .refs = store->queryPathInfo(path)->references,
+ .refs = store->queryPathInfo(path)->references.others,
.dist = path == dependencyPath ? 0 : inf
});