From a610560bb4b5a05eb480a4dbab3e24c553727047 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 15 Apr 2015 15:44:32 +0200 Subject: release.nix: Rename upstream pkgs to pkgsUpstream. Mainly to make it a bit easier to distinguish, but also because we want to make the release attribute set recursive, so we don't run into weird evaluation errors. Signed-off-by: aszlig --- release.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release.nix') diff --git a/release.nix b/release.nix index 0fe678dd..df290475 100644 --- a/release.nix +++ b/release.nix @@ -4,9 +4,9 @@ let system = "x86_64-linux"; - pkgs = import { inherit system; }; + pkgsUpstream = import { inherit system; }; -in with pkgs.lib; with builtins; { +in with pkgsUpstream.lib; with builtins; { machines = mapAttrsRecursiveCond (m: !(m ? build)) (path: attrs: attrs.build.config.system.build.toplevel @@ -19,9 +19,9 @@ in with pkgs.lib; with builtins; { pkgs = let releaseLib = import { inherit supportedSystems; - packageSet = attrs: import ./pkgs { + packageSet = attrs: (import ./pkgs { pkgs = import attrs; - } // { inherit (pkgs) lib; }; + }) // { inherit (pkgsUpstream) lib; }; }; in with releaseLib; mapTestOn (packagePlatforms releaseLib.pkgs); -- cgit 1.4.1