mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Use ^
not !
in indexed store derivations installable syntax
Match the other syntax that was recently added
This commit is contained in:
parent
b18720ee17
commit
49ad315c03
5 changed files with 13 additions and 14 deletions
|
@ -799,11 +799,12 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
|
|||
for (auto & s : ss) {
|
||||
std::exception_ptr ex;
|
||||
|
||||
if (s.rfind('!') != std::string::npos) {
|
||||
auto found = s.rfind('^');
|
||||
if (found != std::string::npos) {
|
||||
try {
|
||||
result.push_back(std::make_shared<InstallableIndexedStorePath>(
|
||||
store,
|
||||
DerivedPath::Built::parse(*store, s)));
|
||||
DerivedPath::Built::parse(*store, s.substr(0, found), s.substr(found + 1))));
|
||||
settings.requireExperimentalFeature(Xp::ComputedDerivations);
|
||||
continue;
|
||||
} catch (BadStorePath &) {
|
||||
|
@ -813,7 +814,8 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
|
|||
}
|
||||
}
|
||||
|
||||
if (s.find('/') != std::string::npos) {
|
||||
found = s.find('/');
|
||||
if (found != std::string::npos) {
|
||||
try {
|
||||
result.push_back(std::make_shared<InstallableStorePath>(store, store->followLinksToStorePath(s)));
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue