nixfmt icon indicating copy to clipboard operation
nixfmt copied to clipboard

Build releases for arm and darwin?

Open marcusramberg opened this issue 1 year ago • 2 comments

For pre-commit hooks and such, would be nice if the releases provided binaries for the most common platforms.

marcusramberg avatar May 29 '24 12:05 marcusramberg

Had a team meeting today, no concrete progress, but some discussion. The notes are a bit ad-hoc :smile::

  • Looked into building more release artifacts
    • More automated releases, could copy somewhat from https://github.com/NixOS/nixpkgs-check-by-name/blob/main/scripts/release.sh
  • GitHub actions?
    • Problem: No ARM
      • Could use cross compilation
      • Nix-community ARM builders?
        • Only for nix-community GitHub org
      • Larger runners?
        • Only for paid GitHub plans, not sure if NixOS org has access
  • Hydra (change release.nix)?
    • Odd usecase of wanting a build without blocking releases, but could be done
  • General problem: Static build requires building GHC, takes some time, should be fine in CI though
    • Could also make Hydra just build a static GHC
  • Dynamic executable, but nix-bundle that?
    • Problem: Only supports Linux
  • Don't bother with static executables?
    • Motivation for having them: https://github.com/NixOS/nixfmt/issues/139
  • Build static executable without Nix?
    • Feels like a step back, less reproducible

infinisil avatar Jun 11 '24 22:06 infinisil

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/formatting-team-meeting-2024-06-11/46878/1

nixos-discourse avatar Jun 11 '24 22:06 nixos-discourse

Discussed in the meeting, closing this because we're dropping release artifacts and are recommending to use the Nixpkgs build instead. Please let use know if that doesn't work for you for some reason.

infinisil avatar Jan 07 '25 20:01 infinisil

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/formatting-team-meeting-2024-12-10-and-2025-01-07/58466/1

nixos-discourse avatar Jan 07 '25 21:01 nixos-discourse