Skip to content

release: release-build static nixfmt for linux_arm64 as a dx-tool asset #11366

Closed

Description

@TrapsterDK

Follow-up to #10645. The first PR there release-builds deadnix and selene only. nixfmt needs a static Haskell link, which is a separate change.

Where

Fix

  • Build @haskell_nixfmt_hackage//:nixfmt-exe-nixfmt on the linux_arm64 row of release-tools.yml as dx-tool-nixfmt-1.5.0-linux_arm64, linked static (-optl-static against the gcc_toolchain sysroot). The script's no-PT_INTERP check must pass.
  • Ship dx-tool-nixfmt-1.5.0-LICENSE (MPL-2.0) next to it and add both to the attested manifest. Raise the line count in release.yml to match.
  • macos_arm64 stays unsupported until the source target builds there (see the design doc).
  • Do not repoint the alias; core: nixfmt: replace haskell_nixfmt_hackage source build with a pinned prebuilt in @dx_tools #10565 does that.
  • The PR stays draft because it touches .github/workflows.

Activity

  1. added
    P2
    model:sonnet
    on Nov 10, 2026
  2. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    Part of #11366 in PR #11404 (stacked on #11372). Remaining: confirm the static nixfmt link on the linux-arm64 runner; macos_arm64 stays unsupported.

  3. TrapsterDK commented on Nov 12, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #11404 rebased onto main (carries #11372). Remaining: evidence run 43221667376 (linux_arm64 static nixfmt build) must be green; workflow_files_test not run locally after the rebase. macos_arm64 stays unsupported.

  4. TrapsterDK commented on Nov 12, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #11404 now links only Cabal executables statically and ships libgmp.a. Remaining: static link of nixfmt fails with ld.lld: error: undefined symbol: __xmknod (deb10 GHC bindist static libs vs hermetic sysroot glibc). Needs a decision: musl/alpine GHC bindist for release, or a glibc 2.28 sysroot. Then a green linux_arm64 evidence build. macos_arm64 stays unsupported.

  5. 77 remaining items

  6. TrapsterDK commented on Nov 17, 2026

    @TrapsterDK
    CollaboratorAuthor

    Done on main via merged PR #11404: release-tools.yml builds @haskell_nixfmt_hackage//:nixfmt-exe-nixfmt for linux-arm64 on //tools/platforms:linux_arm64_musl with fully_static_link and fails on INTERP (readelf); dx-tool-nixfmt-1.5.0-LICENSE is extracted and both assets are in release.yml's tool manifest (22 lines); tool-prebuilts.md nixfmt row is linux_arm64 rel, macos_arm64 no. Evidence: linux_arm64 build run 44087012749 and no-PT_INTERP run 44090462747 green. Alias repoint is left to #10565.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2model:sonnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions