Properly set the output env variables

Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
Théophane Hufschmitt 2021-06-21 15:52:01 +02:00 committed by GitHub
parent 2cf591a134
commit ce674cb2cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,7 +150,7 @@ StorePath getDerivationEnvironment(ref<Store> store, const StorePath & drvPath)
output.second = {
.output = DerivationOutputDeferred{},
};
drv.env[output.first] = "";
drv.env[output.first] = hashPlaceholder(output.first);
}
} else {
for (auto & output : drv.outputs) {