From 656390062a9b612df3238f9e6a0d5ce89c3de21c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 11 Jul 2013 14:32:22 +0200 Subject: nix-build --run-env: Source $stdenv/setup in the interactive shell This ensures that not just environment variables are set, but also shell functions such as unpackPhase, configurePhase and so on. --- doc/manual/nix-build.xml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'doc') diff --git a/doc/manual/nix-build.xml b/doc/manual/nix-build.xml index f9530dc4b417..6640898b44cd 100644 --- a/doc/manual/nix-build.xml +++ b/doc/manual/nix-build.xml @@ -79,8 +79,9 @@ or renamed. So don’t rename the symlink. the dependencies of the derivation, but not the derivation itself. It will then start an interactive shell in which all environment variables defined by the derivation have been set to their -corresponding values. This is useful for reproducing the environment -of a derivation for development. +corresponding values, and the script $stdenv/setup +has been sourced. This is useful for reproducing the environment of a +derivation for development. @@ -144,9 +145,9 @@ also . cmd - In the environment of the derivation, executeq the - command cmd instead of the default - interactive shell. + In the environment of the derivation, run the + shell command cmd instead of starting + an interactive shell. @@ -181,10 +182,10 @@ interactive shell in which to build it: $ nix-build '<nixpkgs>' --run-env -A pan -$ tar xf $src +$ unpackPhase $ cd pan-* -$ ./configure -$ make +$ configurePhase +$ buildPhase $ ./pan/gui/pan -- cgit 1.4.1