From 1db187ff690e6673433eb073088fe5169e12a4d2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 22 Oct 2007 12:46:15 +0000 Subject: [PATCH] --- doc/manual/writing-nix-expressions.xml | 29 +++++++++++++------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/doc/manual/writing-nix-expressions.xml b/doc/manual/writing-nix-expressions.xml index b83f46899d..ce6c1f4add 100644 --- a/doc/manual/writing-nix-expressions.xml +++ b/doc/manual/writing-nix-expressions.xml @@ -1,4 +1,4 @@ -chapter xmlns="http://docbook.org/ns/docbook" + @@ -526,16 +526,15 @@ genericBuild bin subdirectory, it's added to PATH; if it has a include subdirectory, it's added to GCC's header search path; and so - on. - How does it work? setup tries sourcing - $out/nix-support/setup-hook of all dependencies - thereby defining environment variables. - If you have A depending on B depending on C - you can force the setup-hooks of C beeing sourced when evaluating - expression A by using - propagatedBuildInputs=[ C ]; - instead of buildInputs when defining derivation B. - + on.How does it work? setup + tries to source the file + pkg/nix-support/setup-hook + of all dependencies. These “setup hooks” can then set up whatever + environment variables they want; for instance, the setup hook for + Perl sets the PERL5LIB environment variable to + contain the lib/site_perl directories of all + inputs. + @@ -544,7 +543,7 @@ genericBuild The function genericBuild is defined in the file $stdenv/setup. - looks for a file nix-support/setup-hook within the derivation path. + @@ -1226,9 +1225,9 @@ set, the attributes of which specify the inputs of the build. They are simply concatenated, separated by spaces. - true is passed as - 1, false - and null are passed as empty string. + true is passed as the string + 1, false and + null are passed as an empty string.