aboutsummaryrefslogtreecommitdiff
path: root/src/nix-instantiate
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-02-10 17:37:35 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-02-10 17:37:35 +0000
commit982399bb144ca1c6d21834fd9a6f61b49db1bfce (patch)
tree5e4080d581dec2cac6ecde92772fe50908e0550c /src/nix-instantiate
parentc6120352b3fd25380ff21726982e22b97ee43e0b (diff)
* 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!
Diffstat (limited to 'src/nix-instantiate')
-rw-r--r--src/nix-instantiate/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc
index 7668958fc..d73d0e613 100644
--- a/src/nix-instantiate/main.cc
+++ b/src/nix-instantiate/main.cc
@@ -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++;