-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ghcjs: fix build and disable profiling by default #68009
Conversation
748b683
to
b47e8da
Compare
@@ -25,7 +25,7 @@ in | |||
, doBenchmark ? false | |||
, doHoogle ? true | |||
, editedCabalFile ? null | |||
, enableLibraryProfiling ? true | |||
, enableLibraryProfiling ? !(ghc.isGhcjs or false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this just be !ghc.isGhcjs
?
@@ -105979,6 +105979,26 @@ self: { | |||
hydraPlatforms = stdenv.lib.platforms.none; | |||
}) {}; | |||
|
|||
"happy_1_19_9" = callPackage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file shouldn't be updated in PRs. It is updated automatically:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the two above comments, this LGTM. I tried building this locally and it looks like it built correctly. I tried compiling a small module and it appeared to work.
I'm not sure if we want to reduce the number of generated Haskell packages, but this also works with the older version of diff --git a/pkgs/development/compilers/ghcjs-ng/default.nix b/pkgs/development/compilers/ghcjs-ng/default.nix
index 6c39263ca3d..5608fefc54b 100644
--- a/pkgs/development/compilers/ghcjs-ng/default.nix
+++ b/pkgs/development/compilers/ghcjs-ng/default.nix
@@ -24,7 +24,7 @@ let
configuredSrc = callPackage ./configured-ghcjs-src.nix {
inherit ghcjsSrc;
inherit (bootPkgs) ghc alex;
- happy = bootPkgs.happy_1_19_9;
+ happy = bootPkgs.happy_1_19_5;
};
genStage0 = callPackage ./mk-stage0.nix { inherit (passthru) configuredSrc; };
bootPkgs = bootPkgs.extend (lib.foldr lib.composeExtensions (_:_:{}) [
@@ -36,7 +36,7 @@ let
(callPackage ./common-overrides.nix {
inherit haskellLib;
inherit (bootPkgs) alex;
- happy = bootPkgs.happy_1_19_9;
+ happy = bootPkgs.happy_1_19_5;
})
ghcjsDepOverrides
]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
9c35b0f
to
5c582f3
Compare
LGTM |
d075238
to
742348d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't edit hackage-packages.nix
.
a9d1519
to
4f31c02
Compare
ab61745
to
5d075ab
Compare
407ecc3
to
33366cc
Compare
a564073
to
35f1e57
Compare
b47e8da
to
4fd3f72
Compare
@peti okay, updated |
@peti is it possible to get this into 19.09? |
@yorickvP you can make a PR against the |
This updates ghcjs so it builds, but profiling is currently broken, ghcjs/ghcjs#759
cc @peti @basvandijk @ElvishJerricco @vaibhavsagar