* 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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user