Skip to content

Commit

Permalink
Merge pull request #70 from Shados/fix-issue-68
Browse files Browse the repository at this point in the history
Workaround/fix for issue #68
  • Loading branch information
Johan Thomsen authored Sep 9, 2019
2 parents 00d7675 + 45c845c commit 3370e8d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions data/eval-machines.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,16 @@ rec {
nixpkgs.localSystem = lib.mkDefault pkgs.buildPlatform;
nixpkgs.crossSystem = lib.mkDefault pkgs.hostPlatform;
nixpkgs.overlays = lib.mkDefault pkgs.overlays;
nixpkgs.pkgs = lib.mkDefault (import pkgs.path {
inherit (config.nixpkgs) overlays localSystem crossSystem;
nixpkgs.pkgs = lib.mkDefault (import pkgs.path ({
inherit (config.nixpkgs) overlays localSystem;
# Merge nixpkgs.config using its merge function
config = options.nixpkgs.config.type.merge ""
([ { value = pkgs.config; } options.nixpkgs.config ]);
});
} // lib.optionalAttrs (config.nixpkgs.localSystem != config.nixpkgs.crossSystem) {
# Only override crossSystem if it is not equivalent to
# localSystem; works around issue #68
inherit (config.nixpkgs) crossSystem;
}));
})
];
extraArgs = { inherit nodes ; name = machineName; };
Expand Down

0 comments on commit 3370e8d

Please sign in to comment.