2019-03-14 15:23:23 +01:00
|
|
|
{ src ? { rev = ""; }, ... }:
|
|
|
|
|
2016-12-20 05:27:15 +01:00
|
|
|
let
|
2018-10-20 18:27:16 +02:00
|
|
|
shared_7_10_3 =
|
2018-10-29 01:32:51 +01:00
|
|
|
import ./nix/shared.nix { compiler = "ghc7103"; };
|
2018-10-06 05:51:18 +02:00
|
|
|
|
2018-11-03 15:27:12 +01:00
|
|
|
shared_8_6_1 =
|
|
|
|
import ./nix/shared.nix { compiler = "ghc861"; };
|
2018-10-29 01:32:51 +01:00
|
|
|
|
2018-12-03 17:07:18 +01:00
|
|
|
shared_ghcjs =
|
|
|
|
import ./nix/shared.nix { compiler = "ghcjs"; };
|
|
|
|
|
2018-11-03 15:27:12 +01:00
|
|
|
shared =
|
|
|
|
import ./nix/shared.nix { };
|
|
|
|
|
2019-02-22 16:32:59 +01:00
|
|
|
shared_linux =
|
|
|
|
import ./nix/shared.nix { system = "x86_64-linux"; };
|
|
|
|
|
2018-11-03 15:27:12 +01:00
|
|
|
coverage =
|
|
|
|
import ./nix/shared.nix { coverage = true; };
|
2018-05-17 17:01:00 +02:00
|
|
|
|
2016-12-20 05:27:15 +01:00
|
|
|
in
|
2018-11-03 15:27:12 +01:00
|
|
|
{ dhall = shared.aggregate
|
2018-10-06 05:51:18 +02:00
|
|
|
{ name = "dhall";
|
|
|
|
|
|
|
|
constituents = [
|
2019-02-12 07:45:34 +01:00
|
|
|
# Verify that the packages build against the oldest supported version
|
|
|
|
# of the compiler
|
2018-10-20 18:27:16 +02:00
|
|
|
shared_7_10_3.dhall
|
2019-02-12 07:45:34 +01:00
|
|
|
shared_7_10_3.dhall-bash
|
|
|
|
shared_7_10_3.dhall-json
|
2019-04-11 18:16:43 +02:00
|
|
|
# `base-noprelude` depends on a specific version of `base`
|
|
|
|
# shared_7_10_3.dhall-lsp-server
|
|
|
|
# `hnix` depends on `lens-family-th`, which doesn't support GHC 7.10.3
|
|
|
|
# shared_7_10_3.dhall-nix
|
2018-11-03 15:27:12 +01:00
|
|
|
|
2019-02-12 07:45:34 +01:00
|
|
|
# Verify that the packages build against the latest supported version
|
|
|
|
# of the compiler
|
2018-11-03 15:27:12 +01:00
|
|
|
shared_8_6_1.dhall
|
|
|
|
shared_8_6_1.dhall-bash
|
|
|
|
shared_8_6_1.dhall-json
|
2019-04-11 18:16:43 +02:00
|
|
|
# `base-noprelude` depends on a specific version of `base`
|
|
|
|
# shared_8_6_1.dhall-lsp-server
|
|
|
|
# `hnix` depends on `unix-2.7.*` and doesn't work with GHC 8.6
|
|
|
|
# shared_8_6_1.dhall-nix
|
2018-11-03 15:27:12 +01:00
|
|
|
|
|
|
|
# However, we still use GHC 8.4.3 to build the distributed tarballs
|
|
|
|
# due to a bug in GHC 8.6.1. See:
|
|
|
|
#
|
|
|
|
# https://ghc.haskell.org/trac/ghc/ticket/15696
|
|
|
|
shared.tarball-dhall
|
|
|
|
shared.tarball-dhall-bash
|
|
|
|
shared.tarball-dhall-json
|
2019-04-11 18:16:43 +02:00
|
|
|
shared.tarball-dhall-lsp-server
|
|
|
|
shared.tarball-dhall-nix
|
2018-11-03 15:27:12 +01:00
|
|
|
|
2018-12-20 19:36:10 +01:00
|
|
|
shared_ghcjs.tarball-website
|
2018-12-03 17:07:18 +01:00
|
|
|
|
2018-11-16 17:20:31 +01:00
|
|
|
# This is the only `dhall` build that runs the test suite
|
|
|
|
coverage.dhall
|
2019-06-09 17:17:07 +02:00
|
|
|
coverage.dhall-json
|
2018-11-16 17:20:31 +01:00
|
|
|
|
2019-03-14 15:23:23 +01:00
|
|
|
(shared.trivial src.rev)
|
2018-10-06 05:51:18 +02:00
|
|
|
];
|
|
|
|
};
|
2018-07-22 07:11:57 +02:00
|
|
|
|
2018-11-03 15:27:12 +01:00
|
|
|
"coverage-dhall" = coverage.dhall;
|
2018-09-10 01:25:10 +02:00
|
|
|
|
2018-12-20 19:36:10 +01:00
|
|
|
inherit (shared_ghcjs) tarball-website;
|
2018-12-07 03:00:03 +01:00
|
|
|
|
2018-11-03 15:27:12 +01:00
|
|
|
inherit (shared)
|
|
|
|
tarball-dhall
|
|
|
|
tarball-dhall-bash
|
|
|
|
tarball-dhall-json
|
2019-04-11 18:16:43 +02:00
|
|
|
tarball-dhall-lsp-server
|
|
|
|
tarball-dhall-nix
|
2018-11-03 15:27:12 +01:00
|
|
|
;
|
2019-02-22 16:32:59 +01:00
|
|
|
|
2019-04-11 18:16:43 +02:00
|
|
|
linux-dhall = shared_linux.possibly-static.dhall;
|
|
|
|
linux-dhall-bash = shared_linux.possibly-static.dhall-bash;
|
|
|
|
linux-dhall-json = shared_linux.possibly-static.dhall-json;
|
|
|
|
linux-dhall-lsp-server = shared_linux.possibly-static.dhall-lsp-server;
|
|
|
|
linux-dhall-nix = shared_linux.possibly-static.dhall-nix;
|
2019-05-13 19:37:03 +02:00
|
|
|
|
|
|
|
inherit (shared_linux)
|
|
|
|
image-dhall
|
|
|
|
image-dhall-bash
|
|
|
|
image-dhall-json
|
|
|
|
image-dhall-lsp-server
|
|
|
|
image-dhall-nix
|
|
|
|
;
|
2018-07-22 07:11:57 +02:00
|
|
|
}
|