Skip to content

Commit

Permalink
Workaround/fix for issue #68
Browse files Browse the repository at this point in the history
  • Loading branch information
Shados committed Sep 8, 2019
1 parent 00d7675 commit 45c845c
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 45c845c

Please # to comment.