nixpkgs-suyu/pkgs/stdenv/generic
Eelco Dolstra cf8daf6312 Add an option ‘stdenv.userHook’ to set a global stdenv setup hook
This allows various applications.  It allows users to set global
optimisation flags, e.g.

  stdenv.userHook = ''NIX_CFLAGS_COMPILE+=" -funroll-loops"'';

But the impetus is as an alternative to issue #229, allowing impure
stdenv setup for people who want to use distcc:

  stdenv.userHook = "source /my/impure/setup-script.sh";

This is probably a bad idea, but at least now it's a bad idea in
people's configuration and not in Nixpkgs. :-)
2012-12-28 16:36:09 +01:00
..
builder.sh Revert "Merge pull request #229 from viric/niximpure2-stdenv-updates" 2012-12-28 15:46:45 +01:00
default-builder.sh
default.nix Add an option ‘stdenv.userHook’ to set a global stdenv setup hook 2012-12-28 16:36:09 +01:00
setup.sh Add an option ‘stdenv.userHook’ to set a global stdenv setup hook 2012-12-28 16:36:09 +01:00