summary refs log tree commit diff
path: root/pkgs/top-level/all-packages.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2006-08-07 13:31:18 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2006-08-07 13:31:18 +0000
commitf1166e0bbbc5b2ab0b39a622499223dcfe9b467a (patch)
treefd03c37dc12f249900215d1bc25ca80c228c1b06 /pkgs/top-level/all-packages.nix
parentf587be2b203c7b02322041ed469207cdfb593b4c (diff)
downloadnixpkgs-f1166e0bbbc5b2ab0b39a622499223dcfe9b467a.tar
nixpkgs-f1166e0bbbc5b2ab0b39a622499223dcfe9b467a.tar.gz
nixpkgs-f1166e0bbbc5b2ab0b39a622499223dcfe9b467a.tar.bz2
nixpkgs-f1166e0bbbc5b2ab0b39a622499223dcfe9b467a.tar.lz
nixpkgs-f1166e0bbbc5b2ab0b39a622499223dcfe9b467a.tar.xz
nixpkgs-f1166e0bbbc5b2ab0b39a622499223dcfe9b467a.tar.zst
nixpkgs-f1166e0bbbc5b2ab0b39a622499223dcfe9b467a.zip
* Through the magic of functional programming, let stdenv export a
  function to regenerate itself with a different setup script.  This
  is useful for experimenting with changes to the setup script in
  specific packages without triggering a rebuild of everything.

* stdenv/generic/setup-latest.sh is a branch of setup.sh containing
  pending changes that will be merged into setup.sh eventually.

* setup-latest.sh: don't use tar's "z" and "j" flags.  Rather, call
  gzip and bunzip2 directly.

svn path=/nixpkgs/trunk/; revision=6066
Diffstat (limited to 'pkgs/top-level/all-packages.nix')
-rw-r--r--pkgs/top-level/all-packages.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 163eb6e88de..b285d3ab556 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -54,6 +54,16 @@ rec {
       );
     };
 
+  # Override the setup script of stdenv.  Useful for testing new
+  # versions of the setup script without causing a rebuild of
+  # everything.
+  #
+  # Example:
+  #   randomPkg = (import ../bla) { ...
+  #     stdenv = overrideSetup stdenv ../stdenv/generic/setup-latest.sh;
+  #   };
+  overrideSetup = stdenv: setup: stdenv.regenerate setup;
+
 
   ### STANDARD ENVIRONMENT