From a70d275f3d25f6e1eb1b6d528ee07ecd7265ada5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Feb 2015 14:42:15 +0100 Subject: Allow passing attributes via files instead of environment variables Closes #473. --- doc/manual/expressions/advanced-attributes.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'doc') diff --git a/doc/manual/expressions/advanced-attributes.xml b/doc/manual/expressions/advanced-attributes.xml index 274e36f5c1d0..fee35f0bef48 100644 --- a/doc/manual/expressions/advanced-attributes.xml +++ b/doc/manual/expressions/advanced-attributes.xml @@ -242,6 +242,27 @@ stdenv.mkDerivation { + passAsFile + + A list of names of attributes that should be + passed via files rather than environment variables. For example, + if you have + + +passAsFile = ["big"]; +big = "a very long string"; + + + then when the builder runs, the environment variable + big will contain the absolute path to a temporary + file containing a very long string. This is + useful when you need to pass large strings to a builder, since + most operating systems impose a limit on the size of the + environment (typically, a few hundred kilobyte). + + + + preferLocalBuild If this attribute is set to -- cgit 1.4.1