aboutsummaryrefslogtreecommitdiff
path: root/pkgs/build-support/substitute (follow)
Commit message (Collapse)AuthorAgeFilesLines
* substituteAll: allowSubstitutes = false;volth2019-02-071-0/+1
| | | trivial derivation
* Add stdenvNoCCEelco Dolstra2016-09-291-2/+2
| | | | | | | This is a standard environment that doesn't contain a C/C++ compiler. This is mostly to prevent trivial builders like runCommand and substituteAll from pulling in gcc for simple configuration changes on NixOS.
* doc/stdenv.xml document substitution env variablesProfpatsch2016-04-231-0/+1
| | | | | The filtering of environment variables that start with an uppercase letter is documented in the manual.
* * Set preferLocalBuild on a few more trivial builders.Eelco Dolstra2012-04-261-1/+2
| | | | svn path=/nixpkgs/trunk/; revision=33935
* * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointlessEelco Dolstra2012-01-181-1/+1
| | | | | | function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
* * Allow post/pre-install hooks.Eelco Dolstra2008-02-121-0/+4
| | | | svn path=/nixpkgs/trunk/; revision=10629
* * Merge the new generic builder.Eelco Dolstra2006-12-271-46/+0
| | | | | | | | | * Removed substitute, it's part of the generic builder now. * stdenv-initial (Linux): use the real generic builder script. This does require that sed is in the path of the builder of the initial stdenv. svn path=/nixpkgs/trunk/; revision=7498
* * Move the substitution functions into stdenv (not merged yet).Eelco Dolstra2006-12-103-24/+16
| | | | | | | | | | | * If the environment variable buildCommand is set, then eval that instead of doing the build phases. This is used by the runCommand function in all-packages.nix to allow one-lines like foo = runCommand "foo" {} "mkdir $out; echo foo > $out/foo"; svn path=/nixpkgs/trunk/; revision=7298
* * Allow the result to be stored somewhere else than $out.Eelco Dolstra2006-11-081-2/+8
| | | | svn path=/nixpkgs/trunk/; revision=6978
* * Utility: the generic substituter. It substitutes all occurences ofEelco Dolstra2006-11-022-0/+26
| | | | | | | | | | | | | | | | | `@var@' in the file `src', writing the result to $out, where `var' is any environment variable starting with a lowercase character. Example: genericSubstituter { src = ./file; foo = "bla"; shell = bash + "/bin/sh"; }; will replace `@foo@' with `bla' and `@shell@' with `/nix/store/...-bash-.../bin/sh'. svn path=/nixpkgs/trunk/; revision=6928
* * Use the generic substituter in the generation of stdenv and gcc-wrapper.Eelco Dolstra2005-02-221-0/+7
| | | | svn path=/nixpkgs/trunk/; revision=2269
* * Some utility functions to make performing substitutions in textEelco Dolstra2005-02-151-0/+39
files easier. Examples: substitute inputFile outputFile \ --replace "@bindir@" "$out/bin" \ --replace "@gcc@" "$GCC/bin/gcc" substitute inputFile outputFile --subst-var out (this is sugar for --replace "@out@" "$out") substituteInPlace file --replace a b (input and output are both `file'; the execute bit is preserved) svn path=/nixpkgs/trunk/; revision=2239