diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-02-19 00:09:42 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-02-19 00:09:42 +0100 |
commit | 95468e3c1e5e42c501bae61d80d08c509629a0f9 (patch) | |
tree | 219e925b529f7bc766339260a910e2653c143b42 | |
parent | 50cf77cecd6ed2c98fab1651e54f7a8dcc162db6 (diff) |
Fix nixpkgs.<attr> warning
-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 071edf432..3bf4fa8f4 100644 --- a/src/nix/installables.cc +++ b/src/nix/installables.cc @@ -454,7 +454,7 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables( for (auto & s : ss) { if (hasPrefix(s, "nixpkgs.")) { bool static warned; - warnOnce(warned, "the syntax 'nixpkgs.<attr>' is deprecated; use 'nixpkgs:<attr>' instead"); + warnOnce(warned, "the syntax 'nixpkgs.<attr>' is deprecated; use 'nixpkgs#<attr>' instead"); result.push_back(std::make_shared<InstallableFlake>(*this, FlakeRef::fromAttrs({{"type", "indirect"}, {"id", "nixpkgs"}}), Strings{"legacyPackages." + settings.thisSystem.get() + "." + std::string(s, 8)}, Strings{})); |