nixpkgs/pkgs/build-support
Shea Levy d1662d7155 Add the replace-dependency build support function.
The use case is to do a deep replacement of a dependency without rebuilding the entire tree.
For example, suppose a security hole is found in glibc and a patch released. Ideally, you'd
just rebuild everything, but that takes time, space, and CPU that you might not have, so in
the mean time you could build a safe version of, say, firefox with:

  firefox-safe = replace-dependency { drv = firefox; old-dependency = glibc; new-dependency = patched-glibc; };

Building firefox-safe will rebuild glibc, but only do a simple copy/string replacement on all other dependencies
of firefox. On my system (MBP 13" mid-2012), after a new glibc had been build building firefox took around 11 seconds.

See the comments in the file for more details.
2013-01-11 14:42:09 -05:00
..
buildenv buildEnv: don't warn about collisions in propagated packages 2012-07-25 23:18:39 -04:00
builder-defs
cabal add luite's mirror to cabal/hackage download expression (for when hackage.haskell.org is down) 2012-12-15 23:34:49 +01:00
checker
clang-wrapper
dotnetenv
fetchbzr
fetchcvs
fetchdarcs Remove deprecated option --ephemeral from fetchdarcs 2012-10-22 15:02:33 +02:00
fetchfile
fetchgit Handle invalid references 2012-06-20 23:28:53 -04:00
fetchgitrevision
fetchhg fetchhg: removing the nix dependency 2012-08-26 23:16:28 +02:00
fetchmtn
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl postgresql: Update to latest versions 2012-12-11 14:08:41 +01:00
gcc-cross-wrapper
gcc-upc-wrapper
gcc-wrapper Adding gccgo for gcc4.7. 2012-08-03 19:49:53 +02:00
kernel * Be less verbose generating initrds. 2012-05-21 20:47:57 +00:00
make-desktopitem
make-startupitem
make-symlinks
mono-dll-fixer
native-darwin-cctools-wrapper Darwin: Add mig', lipo', etc. to `stdenvNative'. 2012-04-23 15:47:31 +00:00
nuke-references
release use openjdk as default for ant-build.nix 2012-08-25 19:39:49 +02:00
setup-hooks * Add a setup hook ‘autoreconfHook’ to simplify packages that need to 2012-05-19 02:52:36 +00:00
src-only
substitute * Set preferLocalBuild on a few more trivial builders. 2012-04-26 15:17:43 +00:00
upstream-updater More specific tracing of a relatively tricky replace once; account for default.nix being present everywhere. 2012-12-22 14:14:48 +04:00
vm VM builds: Use BusyBox 2012-12-18 16:57:11 +01:00
vsenv
replace-dependency.nix Add the replace-dependency build support function. 2013-01-11 14:42:09 -05:00
source-from-head-fun.nix Remove getConfig helper function 2012-09-19 13:56:56 -04:00
trivial-builders.nix * writeTextFile: don't use the build hook. NixOS uses this function a 2012-04-26 15:01:41 +00:00