lix/scripts
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
..
maintenance * Update the cleanup script. 2011-08-27 16:59:32 +00:00
build-remote.pl.in build-remote.pl: don't wait forever for the upload lock 2012-03-05 17:58:09 +01:00
copy-from-other-stores.pl.in * Add a -I flag to the Perl bindings to nix-build and some other 2012-01-05 20:33:46 +00:00
copying-collector.pl * I said it couldn't be done. I was wrong. 2005-04-04 15:18:19 +00:00
download-using-manifests.pl.in * download-using-manifests: use the Perl bindings. 2011-11-29 13:01:24 +00:00
find-runtime-roots.pl.in * Set the executable bit on scripts. 2011-10-10 22:40:17 +00:00
Makefile.am * Move SSH.pm. 2011-10-11 11:45:36 +00:00
nix-build.in Add a command "nix-build --run-env" to reproduce the environment of a derivation 2012-03-19 04:14:21 +01:00
nix-channel.in * nix-channel: fail if we don't have write permission to the manifests 2012-02-02 12:25:56 +00:00
nix-collect-garbage.in * Add a -I flag to the Perl bindings to nix-build and some other 2012-01-05 20:33:46 +00:00
nix-copy-closure.in nix-copy-closure: don't print copied path on stdout 2012-03-05 20:52:24 +01:00
nix-generate-patches.in * Set the executable bit on scripts. 2011-10-10 22:40:17 +00:00
nix-http-export.cgi.in Replace wrong (w.r.t. PATH) sed call with in-shell substitution 2009-02-19 20:46:45 +00:00
nix-install-package.in * Add a -I flag to the Perl bindings to nix-build and some other 2012-01-05 20:33:46 +00:00
nix-prefetch-url.in * nix-prefetch-url: rewritten in Perl. 2011-12-02 12:09:50 +00:00
nix-profile.sh.in 2008-11-20 17:22:42 +00:00
nix-pull.in * Use Nix::Config. 2012-01-03 00:47:27 +00:00
nix-push.in * Use Nix::Config. 2012-01-03 00:47:27 +00:00
nix-reduce-build.in * Set the executable bit on scripts. 2011-10-10 22:40:17 +00:00
remove-patches.pl * Remove the localPaths feature in manifests since it's no longer used 2011-04-06 09:16:22 +00:00
show-duplication.pl * `show-duplication.pl', a small utility that shows the amount of 2006-09-19 13:53:35 +00:00