diff options
author | Timothy DeHerrera <tim@nrdxp.dev> | 2022-12-19 13:16:06 -0700 |
---|---|---|
committer | Timothy DeHerrera <tim@nrdxp.dev> | 2022-12-19 13:16:06 -0700 |
commit | 94cf0da7b2955d5b54a142b9e920332746a61033 (patch) | |
tree | 0b60a25b1ceae65611e164a4fda2ec42f2a733e5 /src/nix/develop.cc | |
parent | 26c7602c390f8c511f326785b570918b2f468892 (diff) |
fix(develop): make `nix develop` drv recreatable
Diffstat (limited to 'src/nix/develop.cc')
-rw-r--r-- | src/nix/develop.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc index 4de109754..6c3a9c6c6 100644 --- a/src/nix/develop.cc +++ b/src/nix/develop.cc @@ -192,10 +192,12 @@ static StorePath getDerivationEnvironment(ref<Store> store, ref<Store> evalStore drv.env.erase("allowedRequisites"); drv.env.erase("disallowedReferences"); drv.env.erase("disallowedRequisites"); + drv.env.erase("name"); /* Rehash and write the derivation. FIXME: would be nice to use 'buildDerivation', but that's privileged. */ drv.name += "-env"; + drv.env.emplace("name", drv.name); drv.inputSrcs.insert(std::move(getEnvShPath)); if (settings.isExperimentalFeatureEnabled(Xp::CaDerivations)) { for (auto & output : drv.outputs) { |