Skip to content

Commit e650170

Browse files
committed
Merge remote-tracking branch 'origin/master' into hkm/embed-file
# Conflicts: # test/default.nix
2 parents 00350f3 + 093ab6c commit e650170

File tree

1,890 files changed

+99
-679901
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,890 files changed

+99
-679901
lines changed

builder/comp-builder.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,8 @@ let
418418

419419
nativeBuildInputs =
420420
[ghc buildPackages.removeReferencesTo]
421-
++ executableToolDepends;
421+
++ executableToolDepends
422+
++ (lib.optional stdenv.hostPlatform.isGhcjs buildPackages.nodejs);
422423

423424
outputs = ["out"]
424425
++ (lib.optional keepConfigFiles "configFiles")

builder/hspkg-builder.nix

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ let
3131

3232
cabalFile = if package-description-override == null || bundledSrc != null then null else package-description-override;
3333

34-
defaultSetupSrc = if stdenv.hostPlatform.isGhcjs then ./Setup.ghcjs.hs else ./Setup.hs;
34+
# New GHC JS backend run emcc itself without the need for custom Setup.hs
35+
oldGhcjs = stdenv.hostPlatform.isGhcjs && builtins.compareVersions ghc.version "9.10" < 0;
36+
defaultSetupSrc = if oldGhcjs then ./Setup.ghcjs.hs else ./Setup.hs;
3537

3638
setup = if package.buildType == "Simple"
3739
then
38-
if stdenv.targetPlatform.isGhcjs # TODO probably should be hostPlatform, but only HsColour used to build ghc will change (updating will require rebuilding all the ghcjs versions)
40+
if oldGhcjs
3941
then
4042
buildPackages.haskell-nix.nix-tools-unchecked.exes.default-setup-ghcjs // { exeName = "default-setup-ghcjs"; }
4143
else

flake.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/check.nix

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ stdenv, lib, haskellLib, buildPackages }:
2-
drv:
2+
let self = drv:
33

44
let
55
component = drv.config;
@@ -28,6 +28,8 @@ in stdenv.mkDerivation ((
2828

2929
passthru = {
3030
inherit (drv) identifier config configFiles executableToolDepends cleanSrc env exeName;
31+
profiled = self drv.profiled;
32+
dwarf = self drv.dwarf;
3133
};
3234

3335
inherit (drv) meta LANG LC_ALL buildInputs;
@@ -62,4 +64,5 @@ in stdenv.mkDerivation ((
6264
inherit (component) preCheck postCheck;
6365
}
6466
// lib.optionalAttrs (drv ? LOCALE_ARCHIVE) { inherit (drv) LOCALE_ARCHIVE; }
65-
)
67+
);
68+
in self

materialized/dummy-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-8.10.1-x86_64-linux/ghc-pkg/dump-global

-1,429
This file was deleted.

materialized/dummy-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-8.10.1-x86_64-linux/ghc-pkg/version

-1
This file was deleted.

materialized/dummy-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-8.10.1-x86_64-linux/ghc/info

-66
This file was deleted.

materialized/dummy-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-8.10.1-x86_64-linux/ghc/numeric-version

-1
This file was deleted.

0 commit comments

Comments
 (0)