mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
nix-build: Fix !<output> handling
This was broken by 22a754c091
.
https://hydra.nixos.org/eval/1573669
This commit is contained in:
parent
887030f211
commit
d37dc71e3c
3 changed files with 4 additions and 3 deletions
|
@ -295,7 +295,8 @@ static void _main(int argc, char * * argv)
|
|||
try {
|
||||
absolute = canonPath(absPath(i), true);
|
||||
} catch (Error & e) {};
|
||||
if (store->isStorePath(absolute) && std::regex_match(absolute, std::regex(".*\\.drv(!.*)?")))
|
||||
auto [path, outputNames] = parsePathWithOutputs(absolute);
|
||||
if (store->isStorePath(path) && hasSuffix(path, ".drv"))
|
||||
drvs.push_back(DrvInfo(*state, store, absolute));
|
||||
else
|
||||
/* If we're in a #! script, interpret filenames
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue