about summary refs log tree commit diff
path: root/scripts/nix-build.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-03-03T14·25+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-03-03T14·25+0000
commit120f00c04fcc1cf1239e88b605f34da551e0bacf (patch)
tree01b4051c008f883c8699baae14b8d04c733d0951 /scripts/nix-build.in
parent2d54312f876c4810db4c3c0006bace686db4948b (diff)
* More online help.
Diffstat (limited to 'scripts/nix-build.in')
-rw-r--r--scripts/nix-build.in16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in
index 25662a74213f..be1ecb23fa6a 100644
--- a/scripts/nix-build.in
+++ b/scripts/nix-build.in
@@ -28,8 +28,22 @@ for (my $n = 0; $n < scalar @ARGV; $n++) {
     my $arg = $ARGV[$n];
 
     if ($arg eq "--help") {
-        print STDERR "Usage: nix-build [OPTION]... [FILE]...\n";
+        print STDERR <<EOF;
+Usage: nix-build [OPTION]... [FILE]...
+
+`nix-build' builds the given Nix expressions (which
+default to ./default.nix if none are given).  A symlink called
+`result' is placed in the current directory.
+
+Flags:
+  --add-drv-link: create a symlink `derivation' to the store derivation
+  --no-out-link: do not create the `result' symlink
+  --attr ATTR: select a specific attribution from the Nix expression
+
+Any additional flags are passed to `nix-store'.
+EOF
         exit 0;
+        # ' hack
     }
 
     elsif ($arg eq "--add-drv-link") {