diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-04-15 15:44:32 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-04-15 15:47:54 +0200 |
commit | a610560bb4b5a05eb480a4dbab3e24c553727047 (patch) | |
tree | dcea3a4f4446b91b3bf2bfc305cb486dbff8ee4a /release.nix | |
parent | 3417dccb23f4d5b7740863d2d408b763691b0683 (diff) |
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'release.nix')
-rw-r--r-- | release.nix | 8 |
1 files changed, 4 insertions, 4 deletions
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 <nixpkgs> { inherit system; }; + pkgsUpstream = import <nixpkgs> { 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 <nixpkgs/pkgs/top-level/release-lib.nix> { inherit supportedSystems; - packageSet = attrs: import ./pkgs { + packageSet = attrs: (import ./pkgs { pkgs = import <nixpkgs> attrs; - } // { inherit (pkgs) lib; }; + }) // { inherit (pkgsUpstream) lib; }; }; in with releaseLib; mapTestOn (packagePlatforms releaseLib.pkgs); |