guix/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
build-remote.pl.in
copy-from-other-stores.pl.in
copying-collector.pl
download-using-manifests.pl.in
find-runtime-roots.pl.in
Makefile.am
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-collect-garbage.in
nix-copy-closure.in
nix-generate-patches.in
nix-http-export.cgi.in
nix-install-package.in
nix-prefetch-url.in
nix-profile.sh.in
nix-pull.in
nix-push.in
nix-reduce-build.in
remove-patches.pl
show-duplication.pl