aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-23 22:25:04 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-23 22:25:04 +0200
commit16c9935fa9487f504b1e9c7f14d0f85ac870a62c (patch)
tree681df5b4ddc9f451e67e8f58cefe698afb516d53 /src
parent19eddecc0fc4e8c12063626eaf942642894a3580 (diff)
Fix fetchurl of executable file
Pointed out by @cstrahan, thanks!
Diffstat (limited to 'src')
-rw-r--r--src/libstore/builtins.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/builtins.cc b/src/libstore/builtins.cc
index 97d6cb943..25e2e7df3 100644
--- a/src/libstore/builtins.cc
+++ b/src/libstore/builtins.cc
@@ -14,7 +14,7 @@ void builtinFetchurl(const BasicDerivation & drv)
if (out == drv.env.end()) throw Error("attribute ‘url’ missing");
writeFile(out->second, data.data);
- auto executable = drv.env.find("out");
+ auto executable = drv.env.find("executable");
if (executable != drv.env.end() && executable->second == "1") {
if (chmod(out->second.c_str(), 0755) == -1)
throw SysError(format("making ‘%1%’ executable") % out->second);