From a41355339a763fb4eece4e340f9b0f2a93e1e397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 21 Sep 2009 12:24:04 +0000 Subject: [PATCH] guile-2-test: Next attempt at overriding `guile'. svn path=/nixpkgs/trunk/; revision=17330 --- pkgs/top-level/guile-2-test.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/guile-2-test.nix b/pkgs/top-level/guile-2-test.nix index 71a0e1f5e5b1..3e4584b2bb53 100644 --- a/pkgs/top-level/guile-2-test.nix +++ b/pkgs/top-level/guile-2-test.nix @@ -6,8 +6,14 @@ let allPackages = import ./all-packages.nix; - pkgsFun = {system ? builtins.currentSystem}: let orig = (allPackages {inherit system;}); in - orig // { __overrides = { guile = orig.guile_1_9; }; }; + pkgsFun = { system ? builtins.currentSystem }: + allPackages { + inherit system; + config.packageOverrides = pkgs: { + guile = pkgs.guile_1_9; + }; + }; + pkgs = pkgsFun {}; toJob = x: if builtins.isAttrs x then x else