Restrict try-dhall build to Linux (#756)

This commit is contained in:
Gabriel Gonzalez 2018-12-14 18:50:21 -08:00 committed by GitHub
parent 145d150e25
commit 21d70b3383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -3,8 +3,13 @@ let
shared_ghcjs = import ./nix/shared.nix { compiler = "ghcjs"; };
shared_ghcjs_linux =
import ./nix/shared.nix { compiler = "ghcjs"; system = "x86_64-linux"; };
in
{ inherit (shared) dhall dhall-bash dhall-json dhall-text;
inherit (shared_ghcjs) dhall-try try-dhall;
inherit (shared_ghcjs) dhall-try;
inherit (shared_ghcjs_linux) try-dhall;
}

View File

@ -1,4 +1,4 @@
{ compiler ? "ghc843", coverage ? false }:
{ compiler ? "ghc843", coverage ? false, system ? builtins.currentSystem }:
let
fetchNixpkgs = import ./fetchNixpkgs.nix;
@ -396,7 +396,10 @@ let
};
pkgs = import nixpkgs {
inherit system;
config = {};
overlays =
[ overlayShared overlayCabal2nix ]
++ (if compiler == "ghc7103" then [ overlayGHC7103 ] else []);