Allow user config to override nix store paths, etc. Removed obsolete nixNoBDB.

Use the following settings in ${NIXPKGS_CONFIG} to customize the installation
of nixUnstable:

  nix =
  {
    OldDBSupport = false;
    storeDir = "/home/foobar/.nix/store";
    stateDir = "/home/foobar/.nix/var";
  }

svn path=/nixpkgs/trunk/; revision=12909
This commit is contained in:
Peter Simons 2008-09-24 08:50:05 +00:00
parent 8d02b898c0
commit e2d7d57ff6

View file

@ -7468,12 +7468,11 @@ let
inherit fetchurl stdenv perl curl bzip2 openssl;
aterm = aterm242fixes;
db4 = db45;
supportOldDBs = true;
supportOldDBs = getPkgConfig "nix" "OldDBSupport" true;
storeDir = getPkgConfig "nix" "storeDir" "/nix/store";
stateDir = getPkgConfig "nix" "stateDir" "/nix/state";
};
# !!! remove in a few weeks, obsolete
nixNoBDB = nixUnstable;
nixCustomFun = src: preConfigure: enableScripts: configureFlags:
import ../tools/package-management/nix/custom.nix {
inherit fetchurl stdenv perl curl bzip2 openssl src preConfigure automake