about summary refs log tree commit diff
path: root/tests/placeholders.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-06-15 Fix test failures when $TMPDIR changesEelco Dolstra1-2/+0
(cherry picked from commit c38c726eb5d447c7e9d894d57cd05ac46c173ddd)
2016-08-17 Add a mechanism for derivation attributes to reference the derivation's outputsEelco Dolstra1-0/+22
For example, you can now say: configureFlags = "--prefix=${placeholder "out"} --includedir=${placeholder "dev"}"; The strings returned by the ‘placeholder’ builtin are replaced at build time by the actual store paths corresponding to the specified outputs. Previously, you had to work around the inability to self-reference by doing stuff like: preConfigure = '' configureFlags+=" --prefix $out --includedir=$dev" ''; or rely on ad-hoc variable interpolation semantics in Autoconf or Make (e.g. --prefix=\$(out)), which doesn't always work.