A modern, delicious implementation of the Nix package manager, focused on correctness, usability, and growth — and committed to doing right by its community
Find a file
Eelco Dolstra 7f38087f35 Add a command "nix-build --run-env" to reproduce the environment of a derivation
This command builds or fetches all dependencies of the given
derivation, then starts a shell with the environment variables from
the derivation.  This shell also sources $stdenv/setup to initialise
the environment further.

The current directory is not changed.  Thus this is a convenient way
to reproduce a build environment in an existing working tree.

Existing environment variables are left untouched (unless the
derivation overrides them).  As a special hack, the original value of
$PATH is appended to the $PATH produced by $stdenv/setup.

Example session:

$ nix-build --run-env '<nixpkgs>' -A xterm
(the dependencies of xterm are built/fetched...)
$ tar xf $src
$ ./configure
$ make
$ emacs
(... hack source ...)
$ make
$ ./xterm
2012-03-19 04:14:21 +01:00
corepkgs * currentOutput -> outputName. "current" implies some temporal 2012-01-04 12:00:39 +00:00
doc Drop the externals directory 2012-03-18 23:54:57 +01:00
misc * Handle <path> syntax. 2011-08-06 18:54:29 +00:00
perl Add a command "nix-build --run-env" to reproduce the environment of a derivation 2012-03-19 04:14:21 +01:00
scripts Add a command "nix-build --run-env" to reproduce the environment of a derivation 2012-03-19 04:14:21 +01:00
src Drop the externals directory 2012-03-18 23:54:57 +01:00
tests Replace "make check" with "make installcheck" 2012-03-19 01:20:02 +01:00
.gitignore Drop the externals directory 2012-03-18 23:54:57 +01:00
AUTHORS * Put something in here. 2004-11-07 20:30:02 +00:00
bootstrap.sh bootstrap: Simplify & make more robust. 2011-09-06 12:11:05 +00:00
configure.ac Fix the optional dependency on OpenSSL 2012-03-19 01:06:13 +01:00
COPYING * Change this to LGPL to keep the government happy. 2006-04-25 16:41:06 +00:00
INSTALL * Autoconf / Automake configuration and building. 2003-04-04 16:14:56 +00:00
Makefile.am Drop the externals directory 2012-03-18 23:54:57 +01:00
nix.conf.example * Document --cores in the manual. 2010-08-17 07:22:05 +00:00
nix.spec.in * Hopefully perl-devel contains the required headers (untested). 2011-10-10 18:58:49 +00:00
README * Install documentation in $(docdir) (i.e. share/doc/nix). 2008-11-19 13:19:09 +00:00
release.nix Replace "make check" with "make installcheck" 2012-03-19 01:20:02 +01:00
substitute.mk Replace "make check" with "make installcheck" 2012-03-19 01:20:02 +01:00
version * Bump the version number. 2010-08-17 15:39:35 +00:00

Nix is a purely functional package manager.  For installation and
usage instructions, please read the manual, which can be found in
`docs/manual/manual.html', and additionally at the Nix website at
<http://nixos.org/>.


Acknowledgments

This product includes software developed by the OpenSSL Project for
use in the OpenSSL Toolkit (http://www.OpenSSL.org/).