about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorKane York <kanepyork@gmail.com>2020-07-19T01·52-0700
committerkanepyork <rikingcoding@gmail.com>2020-07-19T06·40+0000
commitf1080c022a5f93cc8dda25fd31f23665739687bb (patch)
treee1e4fe5ed1c804df3e9c3e6275229d1452f5363f /third_party
parent105ad71015465104db98a7e6077a4cc48bd8e5f0 (diff)
fix(3p/nix): convert all holders of EvalState into gc r/1393
Change-Id: Ia0d1fdd5c73941d02da0ca7152600f966cee5ccb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1280
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/nix/src/libexpr/get-drvs.hh2
-rw-r--r--third_party/nix/src/nix-env/nix-env.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/libexpr/get-drvs.hh b/third_party/nix/src/libexpr/get-drvs.hh
index bb20c32c0b..30645123ea 100644
--- a/third_party/nix/src/libexpr/get-drvs.hh
+++ b/third_party/nix/src/libexpr/get-drvs.hh
@@ -7,7 +7,7 @@
 
 namespace nix {
 
-struct DrvInfo {
+struct DrvInfo : public gc {
  public:
   typedef std::map<std::string, Path> Outputs;
 
diff --git a/third_party/nix/src/nix-env/nix-env.cc b/third_party/nix/src/nix-env/nix-env.cc
index 07bcb54eb6..820b8cbcaf 100644
--- a/third_party/nix/src/nix-env/nix-env.cc
+++ b/third_party/nix/src/nix-env/nix-env.cc
@@ -48,7 +48,7 @@ struct InstallSourceInfo {
   Bindings* autoArgs;
 };
 
-struct Globals {
+struct Globals : public gc {
   InstallSourceInfo instSource;
   Path profile;
   std::shared_ptr<EvalState> state;