nixpkgs/pkgs/stdenv
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
..
generic Add an option ‘stdenv.userHook’ to set a global stdenv setup hook 2012-12-28 16:36:09 +01:00
linux Add an option ‘stdenv.userHook’ to set a global stdenv setup hook 2012-12-28 16:36:09 +01:00
mingw removed executable bits from Nix files 2012-04-03 06:31:19 +00:00
native Add an option ‘stdenv.userHook’ to set a global stdenv setup hook 2012-12-28 16:36:09 +01:00
nix Add an option ‘stdenv.userHook’ to set a global stdenv setup hook 2012-12-28 16:36:09 +01:00
adapters.nix Add a stdenv adapter ‘keepDebugInfo’ to make a debug build 2012-10-31 13:46:51 +01:00
common-path.nix * Don't use the "replace-literal" command in stdenv; instead use 2012-01-19 13:47:26 +00:00
default.nix Add an option ‘stdenv.userHook’ to set a global stdenv setup hook 2012-12-28 16:36:09 +01:00