about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-03-20T16·28+0100
committerEelco Dolstra <edolstra@gmail.com>2018-03-20T16·28+0100
commit668ac3ea2c4c7390761dfbc5738c2aa85fda9751 (patch)
tree74a492a409f981a885df3facd92a63fa54624199 /src/libstore/build.cc
parent9d40787938f38d19edbabad03586d0948236aefd (diff)
Make <nix/buildenv.nix> a builtin builder
This avoids sandbox annoyances.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 5c548755c65a..082cd7db0f84 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2949,6 +2949,8 @@ void DerivationGoal::runChild()
 
                 if (drv->builder == "builtin:fetchurl")
                     builtinFetchurl(drv2, netrcData);
+                else if (drv->builder == "builtin:buildenv")
+                    builtinBuildenv(drv2);
                 else
                     throw Error(format("unsupported builtin function '%1%'") % string(drv->builder, 8));
                 _exit(0);