diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-21 23:38:07 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-10-21 23:38:07 +0200 |
commit | 91a88f3acba8978d17ca40fd64e381514a51244d (patch) | |
tree | 70426d55a52a9b62081099d1a9d67f5197e8701f /src | |
parent | 1e23b82a5303fa9f22f8943c0c3f3a65bc5eb9a9 (diff) |
Fix "nixpkgs." compatibility
Diffstat (limited to 'src')
-rw-r--r-- | src/nix/installables.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc index bc8fbeb8f..38f37adb1 100644 --- a/src/nix/installables.cc +++ b/src/nix/installables.cc @@ -409,7 +409,7 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables( bool static warned; warnOnce(warned, "the syntax 'nixpkgs.<attr>' is deprecated; use 'nixpkgs:<attr>' instead"); result.push_back(std::make_shared<InstallableFlake>(*this, FlakeRef("nixpkgs"), - Strings{"legacyPackages." + std::string(s, 8)})); + Strings{"legacyPackages." + settings.thisSystem.get() + "." + std::string(s, 8)})); } else if ((hash = s.rfind('#')) != std::string::npos) |