Glistix / glistix

Fork of the Gleam compiler providing a Nix backend, compiling Gleam to Nix
Apache License 2.0
88 stars 1 forks source link

Port Gleam 1.3 JS fixes to Nix #13

Closed PgBiel closed 4 months ago

PgBiel commented 4 months ago

Ports the following JS target fixes to Nix:

  1. Adds bit array byte-alignment compile-time checks (https://github.com/gleam-lang/gleam/pull/3111)
  2. Do not unnecessarily rewrite gleam.nix in the build output (from the fix to https://github.com/gleam-lang/gleam/issues/3178 at https://github.com/gleam-lang/gleam/commit/975536533e26d9afb8b94f785a0b7aecc637f733)
  3. Fix using aliased record constructors in constants (from the fix for https://github.com/gleam-lang/gleam/issues/3294 at https://github.com/gleam-lang/gleam/commit/ec614e7746de3e31b6edf16dadd99d59352bc264)

Also added a test to verify that https://github.com/gleam-lang/gleam/issues/3379 does not apply to the Nix target.