diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-24T20·58-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-24T20·58-0400 |
commit | a9e6752bbd888ab8fbc1cda6e4d539b2858c4cef (patch) | |
tree | 6d5ac4f9e784b91fe4382293eb84684038990dc1 /scripts | |
parent | 4aa1e5c55484ac02d28883292ee5c5806f5e4664 (diff) |
Include the output name in the GC root link
Output names are now appended to resulting GC symlinks, e.g. by nix-build. For backwards compatibility, if the output is named "out", nothing is appended. E.g. doing "nix-build -A foo" on a derivation that produces outputs "out", "bin" and "dev" will produce symlinks "./result", "./result-bin" and "./result-dev", respectively.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/nix-build.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index afe0679a47d3..3ca3a1aafa6f 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -46,7 +46,7 @@ Flags: --no-out-link: do not create the `result' symlink --out-link / -o NAME: create symlink NAME instead of `result' --attr / -A ATTR: select a specific attribute from the Nix expression - + --run-env: build dependencies of the specified derivation, then start a shell with the environment of the derivation --command: command to run with `--run-env' @@ -114,7 +114,7 @@ EOF push @buildArgs, "--dry-run"; $dryRun = 1; } - + elsif ($arg eq "--show-trace") { push @instArgs, $arg; } @@ -122,22 +122,22 @@ EOF elsif ($arg eq "-") { @exprs = ("-"); } - + elsif ($arg eq "--verbose" or substr($arg, 0, 2) eq "-v") { push @buildArgs, $arg; push @instArgs, $arg; $verbose = 1; } - + elsif ($arg eq "--quiet") { push @buildArgs, $arg; push @instArgs, $arg; } - + elsif ($arg eq "--run-env") { $runEnv = 1; } - + elsif ($arg eq "--command") { $n++; die "$0: `$arg' requires an argument\n" unless $n < scalar @ARGV; |