1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/stdenv
Eelco Dolstra b0f2d3419c Allow multiple hooks with the same name
You can now register multiple values per named hook, e.g.

  addHook preConfigure "echo foo"
  addHook preConfigure "echo bar"

will cause ‘runHook preConfigure’ to run both ‘echo foo’ and ‘echo
bar’ (in that order). It will also call the shell function
preConfigure() or eval the shell variable $preConfigure, if
defined. Thus, if you don't call addHook, it works like the old hook
mechanism.

Allowing multiple hooks makes stdenv more modular and extensible. For
instance, multiple setup hooks can define a preFixup hook, and all of
these will be executed.
2014-08-09 12:44:48 +02:00
..
generic Allow multiple hooks with the same name 2014-08-09 12:44:48 +02:00
linux Another attempt to eradicate ensureDir 2014-06-30 14:56:10 +02:00
native Add SmartOS native GCC path. 2013-02-28 20:04:04 +01:00
nix Doh 2014-07-28 09:37:23 +02:00
adapters.nix Typo/comment 2014-04-22 18:42:44 +02: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 Remove the unmaintained (and AFAIK unused) stdenv for mingw 2014-06-30 13:31:08 +02:00