guile-2-test: Next attempt at overriding `guile'.

svn path=/nixpkgs/trunk/; revision=17330
This commit is contained in:
Ludovic Courtès 2009-09-21 12:24:04 +00:00
parent 0ba0fefa95
commit a41355339a

View File

@ -6,8 +6,14 @@
let let
allPackages = import ./all-packages.nix; allPackages = import ./all-packages.nix;
pkgsFun = {system ? builtins.currentSystem}: let orig = (allPackages {inherit system;}); in pkgsFun = { system ? builtins.currentSystem }:
orig // { __overrides = { guile = orig.guile_1_9; }; }; allPackages {
inherit system;
config.packageOverrides = pkgs: {
guile = pkgs.guile_1_9;
};
};
pkgs = pkgsFun {}; pkgs = pkgsFun {};
toJob = x: if builtins.isAttrs x then x else toJob = x: if builtins.isAttrs x then x else