Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dmjio
Copy link
Owner

@dmjio dmjio commented Apr 7, 2025

📦 Introduce a multi-nixpkgs workflow (legacyPkgs and pkgs)

Because nixpkgs has removed python27 we can no longer build nixops (it has also been removed, unfortunately). So until a new nixops comes onto the scene we must keep around our old nixpkgs for deployment (for now).

  • Copy old nix/ folder into legacy/, repurpose nix/ to use pkgsCross.ghcjs
  • Introduce legacyPkgs (ghcjs86, closure-compiler, nixops-1.7)
  • Introduce recent pkgs (ghcjs9122, bun)
  • Hoist source.nix to top-level (consumed by all), adjust paths accordingly
  • Put new JS backend (ghcjs9122) miso build under CI
  • Keep deploy script, haskell-miso.org and sse examples under legacyPkgs
  • Use doHaddock
  • Formatting of nix
  • Update cabal.project to include new js backend dep. overrides
  • Updates tests to be ghcjs9122 ready, drops default test build (rely on ts/ tests primarily)

Using mutliple nixpkgs allows us to safely consume the new JS backend
without breaking the existing ghcjs86 that the project was originally built upon.

This opens up the door to use haskell.nix or other nix paradigms (flakes) and packages now that we're on a (much) newer nixpkgs.

dmjio added 14 commits April 6, 2025 17:36
- Copy old nix/ folder into legacy/
- Introduce legacyPkgs (ghcjs86, closure-compiler, nixops-1.7)
- Introduce recent nixpkgs (ghcjs9122, bun)
- Hoist source.nix to top-level (consumed by all), adjust paths
- Put new JS backend miso build under CI
- Keep deploy script, haskell-miso.org and sse examples under legacyPkgs
- Use doHaddock
- Formatting

Because nixpkgs has removed python27 we can no longer build nixops (it
has been removed). So until a new nixops comes onto the scene we must
keep around our old nixpkgs for deployment (for now).

Using mutliple nixpkgs allows us to safely consume the new JS backend
without breaking the existing ghcjs86 we depend on.
@dmjio dmjio merged commit 7d54368 into master Apr 7, 2025
3 checks passed
@dmjio dmjio deleted the ghc9122 branch April 7, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants