aboutsummaryrefslogtreecommitdiff
path: root/scripts/nix-build.in
AgeCommit message (Collapse)Author
2010-08-30* When using the build hook, distinguish between the stderr of theEelco Dolstra
hook script proper, and the stdout/stderr of the builder. Only the latter should be saved in /nix/var/log/nix/drvs. * Allow the verbosity to be set through an option. * Added a flag --quiet to lower the verbosity level.
2010-08-11* nix-build: recognise --cores.Eelco Dolstra
2009-12-09* nix-build: be less verbose.Eelco Dolstra
2009-07-15* nix-build: pass the --show-trace flag.Eelco Dolstra
2009-06-10* nix-build: if nix-instantiate or nix-store fails due to a signalEelco Dolstra
(e.g. out of memory or a segfault), print an error message. Otherwise the user doesn't see anything.
2009-03-18* Clean up some tests (use nix-build where appropriate).Eelco Dolstra
2009-02-27* nix-build: support --option.Eelco Dolstra
2009-01-13(no commit message)Eelco Dolstra
2008-11-20* Urgh.Eelco Dolstra
2008-08-04* nix-build: `--dry-run' flag.Eelco Dolstra
2007-11-15* nix-build: pass --argstr to nix-instantiate.Eelco Dolstra
2007-06-11* Check against creation of GC roots in the store. Those roots don'tEelco Dolstra
work, because findRoots() stops when it encounters a symlink to the store. And of course the store is supposed to be read-only.
2006-12-08* Kill a build if it has gone for more than a certain number ofEelco Dolstra
seconds without producing output on stdout or stderr (NIX-65). This timeout can be specified using the `--max-silent-time' option or the `build-max-silent-time' configuration setting. The default is infinity (0). * Fix a tricky race condition: if we kill the build user before the child has done its setuid() to the build user uid, then it won't be killed, and we'll potentially lock up in pid.wait(). So also send a conventional kill to the child.
2006-10-31* Oops, `nix-build --no-out-link' was broken.Eelco Dolstra
2006-10-19* nix-build: check the exit status of `nix-store -r'.Eelco Dolstra
2006-08-04* Use old-school pipe opens; the new style is Perl >= 5.8.0.Eelco Dolstra
2006-08-01* Better error checking.Eelco Dolstra
2006-07-28* `nix-instantiate ... --arg NAME VALUE': allow arguments to be passedEelco Dolstra
to functions from the command line. * nix-build: started removing backticks.
2006-03-14* Allow the resulting symlink of nix-build to be named, e.g.,Eelco Dolstra
$ nix-build .../i686-linux.nix -A apacheHttpd -o apache
2006-03-03* More online help.Eelco Dolstra
2006-03-03* Rewrote nix-build in Perl, since sh is just too limited (turns outEelco Dolstra
that arrays are a bash extension, so it didn't work on FreeBSD). Also fixes NIX-8 (readlink(1) dependency).
2006-02-10* Enable the --attr in nix-build as well (and add -A as an alias).Eelco Dolstra
Example: $ nix-build ./all-packages.nix -A xlibs.libX11 So finally it's easy to perform a test build of a Nix expression!
2005-07-13* nix-build: default to `./default.nix' if no paths are specified.Eelco Dolstra
So when using Nix as a build tool, you can just say `nix-build' and it will build the top-level derivation defined in `default.nix'.
2005-02-01* Remove debug code.Eelco Dolstra
2005-02-01* nix-build: use an indirection scheme to make it easier for users toEelco Dolstra
get rid of GC roots. Nix-build places a symlink `result' in the current directory. Previously, removing that symlink would not remove the store path being linked to as a GC root. Now, the GC root created by nix-build is actually a symlink in `/nix/var/nix/gcroots/auto' to `result'. So if that symlink is removed the GC root automatically becomes invalid (since it can no longer be resolved). The root itself is not automatically removed - the garbage collector should delete dangling roots.
2005-02-01* nix-store, nix-instantiate: added an option `--add-root' toEelco Dolstra
immediately add the result as a permanent GC root. This is the only way to prevent a race with the garbage collector. For instance, the old style ln -s $(nix-store -r $(nix-instantiate foo.nix)) \ /nix/var/nix/gcroots/result has two time windows in which the garbage collector can interfere (by GC'ing the derivation and the output, respectively). On the other hand, nix-store --add-root /nix/var/nix/gcroots/result -r \ $(nix-instantiate --add-root /nix/var/nix/gcroots/drv \ foo.nix) is safe. * nix-build: use `--add-root' to prevent GC races.
2005-01-27* Fix and simplify the garbage collector (it's still not concurrent,Eelco Dolstra
though). In particular it's now much easier to register a GC root. Just place a symlink to whatever store path it is that you want to keep in /nix/var/nix/gcroots.
2005-01-14* Use absolute paths.Eelco Dolstra
2004-12-20* Place manifests in /nix/var/nix/manifests.Eelco Dolstra
* Use the new patch downloader.
2004-10-31* Fix `File exists' errors if the `result' symlink exists but isEelco Dolstra
dangling.
2004-08-18* Flag `--no-link' suppresses symlinking to the output path.Eelco Dolstra
* Handle multiple derivations correctly.
2004-07-28* Nix-build places a symlink `result' in the current directory to theEelco Dolstra
store object just built.
2004-06-22* Nix-instantiate can return multiple store expressions.Eelco Dolstra
2004-06-22* A utility script `nix-build' that builds Nix expressions and printsEelco Dolstra
their output paths (and only that) on standard output.