nixpkgs/pkgs/stdenv/linux
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
..
bootstrap The loongson2f bootstrap files were already at nixos.org. 2012-10-25 23:22:41 +02:00
scripts * Prepend the "prehook" rather than sourcing it. 2012-01-19 15:56:17 +00:00
default.nix Add an option ‘stdenv.userHook’ to set a global stdenv setup hook 2012-12-28 16:36:09 +01:00
make-bootstrap-tools.nix * Don't use the "replace-literal" command in stdenv; instead use 2012-01-19 13:47:26 +00:00