haskellPackages: wrap up loose ends in js context#321004
Merged
maralorn merged 4 commits intoNixOS:haskell-updatesfrom Jun 19, 2024
Merged
haskellPackages: wrap up loose ends in js context#321004maralorn merged 4 commits intoNixOS:haskell-updatesfrom
maralorn merged 4 commits intoNixOS:haskell-updatesfrom
Conversation
sternenseemann
approved these changes
Jun 19, 2024
Member
|
I am just wondering whether it makes sense to build ghcjs-base. Is it maybe also distributed with ghcjs? |
Member
Author
Not sure but this seems to be building fine nixpkgs/pkgs/development/haskell-modules/configuration-ghcjs-8.x.nix Lines 21 to 26 in e9a349a and the custom package expression has been here from the start ba25b27#diff-23ecfe4f32ee3203aa1fe2663504d2294c0e4bb69836df5de72003dec50ea62dR21-R23 so maybe not worth touching it for ghcjs itself? As for the js backend, ghcjs-base is a normal package AFAICT |
Member
|
Well then, let‘s do this. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
ghcjs-base
Guess it started failing after removing
ghcjs-base = null.Since it's only buildable on JS, I set it as the only supported platform.
Related, turns out the
ghcjs-prim = nullremoval broke old ghcjs evalso I added that back in ghcjs-8.x only.
That fixes the eval errors, but I can't seem to actually build as linking fails on hspec-discover
Happens on master as well though
ghcjs-websockets
https://hackage.haskell.org/package/ghcjs-websockets was last updated 8 years ago and is deprecated in favor of https://github.com/ghcjs/ghcjs-base/blob/31a85c618a97ce3af3d91bbceb7b0891b0fdab94/JavaScript/Web/WebSocket.hs .
Its only reverse dependency on hackage is acme-everything, so I flagged it as broken by default and unmarked on ghcjs-8.x only. I don't think the compile time errors under new js backend will ever be fixed:
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.