aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-06-30 17:57:01 +0200
committerGitHub <noreply@github.com>2021-06-30 17:57:01 +0200
commit139f7af5ec40ca75ad2ef9393c5029f0850105d9 (patch)
treea12025a6371b0cc567d0f338f98624ce4dda5c93
parent69eb65403ad3e877300a7c0c96411d9d9e27dc69 (diff)
parentbf7960a4ede0f5ba7e88b939ed0f33aa6087cbc6 (diff)
Merge pull request #4958 from NixOS/nix-develop-remove-override-input-warning
develop: Discard the input{Overrides,Updates} when getting bash
-rw-r--r--src/nix/develop.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc
index d77ff52d7..6c089469d 100644
--- a/src/nix/develop.cc
+++ b/src/nix/develop.cc
@@ -443,13 +443,17 @@ struct CmdDevelop : Common, MixEnvironment
try {
auto state = getEvalState();
+ auto nixpkgsLockFlags = lockFlags;
+ nixpkgsLockFlags.inputOverrides = {};
+ nixpkgsLockFlags.inputUpdates = {};
+
auto bashInstallable = std::make_shared<InstallableFlake>(
this,
state,
installable->nixpkgsFlakeRef(),
Strings{"bashInteractive"},
Strings{"legacyPackages." + settings.thisSystem.get() + "."},
- lockFlags);
+ nixpkgsLockFlags);
shell = state->store->printStorePath(
toStorePath(state->store, Realise::Outputs, OperateOn::Output, bashInstallable)) + "/bin/bash";