mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
* Enable the --attr in nix-build as well (and add -A as an alias).
Example: $ nix-build ./all-packages.nix -A xlibs.libX11 So finally it's easy to perform a test build of a Nix expression!
This commit is contained in:
parent
c6120352b3
commit
982399bb14
2 changed files with 16 additions and 7 deletions
|
@ -84,7 +84,7 @@ void run(Strings args)
|
|||
throw UsageError("`--add-root requires an argument");
|
||||
gcRoot = absPath(*i++);
|
||||
}
|
||||
else if (arg == "--attr") {
|
||||
else if (arg == "--attr" || arg == "-A") {
|
||||
if (i == args.end())
|
||||
throw UsageError("`--attr requires an argument");
|
||||
attrPath = *i++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue