1
0
Fork 0
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:
Eelco Dolstra 2006-02-10 17:37:35 +00:00
parent c6120352b3
commit 982399bb14
2 changed files with 16 additions and 7 deletions

View file

@ -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++;