aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-02 18:24:11 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-07-02 18:24:11 +0200
commitb5e42536977d84359f5fea3f42cfefdd46799eb1 (patch)
tree37b396a67c08106e57314d655376f8ab0b05e008 /src/nix
parenta5b6e870fe9fb5ebf462c19963588d62f56d0f21 (diff)
Fix abort in 'nix develop'
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/develop.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc
index 037987313..289e3bed3 100644
--- a/src/nix/develop.cc
+++ b/src/nix/develop.cc
@@ -135,13 +135,7 @@ StorePath getDerivationEnvironment(ref<Store> store, const StorePath & drvPath)
drv.inputSrcs.insert(std::move(getEnvShPath));
Hash h = hashDerivationModulo(*store, drv, true);
auto shellOutPath = store->makeOutputPath("out", h, drvName);
- drv.outputs.insert_or_assign("out", DerivationOutput {
- .path = shellOutPath,
- .hash = FixedOutputHash {
- .method = FileIngestionMethod::Flat,
- .hash = Hash { },
- },
- });
+ drv.outputs.insert_or_assign("out", DerivationOutput { .path = shellOutPath });
drv.env["out"] = store->printStorePath(shellOutPath);
auto shellDrvPath2 = writeDerivation(store, drv, drvName);