Skip to content

headroom: init at 0.42.0 - #569784

Merged
SuperSandro2000 merged 1 commit into
NixOS:masterfrom
attilaolah:headroom-ai
Nov 16, 2026
Merged

SuperSandro2000 merged 1 commit into
NixOS:masterfrom
attilaolah:headroom-ai

Conversation

@attilaolah

@attilaolah attilaolah commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Add Headroom. Can be used both as a proxy via headroom proxy and as an MCP via headroom mcp serve.

The original attempt at packaging Headroom was in #529964, thanks for the inspiration.

Things done

  • Wrap it with the necessary tools to avoid binary downloads at runtime
  • Fetch Tiktoken encodings into the Nix store to prevent Headroom from fetching them on-the-fly
  • Try to get as much of the tests to run as I could
  • Unfortunately there is a long list of surgical test deselections

@nixpkgs-ci nixpkgs-ci Bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Oct 3, 2026
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (new) This PR adds a new package 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. llm-assisted Contributions that include code generation with LLMs labels Oct 3, 2026
@attilaolah

This comment was marked as outdated.

@attilaolah

This comment was marked as outdated.

@attilaolah
attilaolah marked this pull request as ready for review October 3, 2026 14:03
@attilaolah

Copy link
Copy Markdown
Contributor Author

This should be ready for review now. I've been using this package for a little over a month now, on both NixOS and Darwin, both as a proxy and as an MCP server. So far no issues.

@attilaolah

Copy link
Copy Markdown
Contributor Author

@SuperSandro2000 you said in #529964 (comment) you might pick up Headroom, maybe you have some input here.

@nixpkgs-ci nixpkgs-ci Bot added 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Oct 3, 2026
@attilaolah

Copy link
Copy Markdown
Contributor Author

@GraysonTinker I added you since you've already looked at #529964, but feel free to suggest someone else.

@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Oct 5, 2026
@GraysonTinker

Copy link
Copy Markdown
Member

Will do when I get the chance, ouch that's a long derivation

@attilaolah

Copy link
Copy Markdown
Contributor Author

Thanks, and no rush at all. It is long indeed, much if it is about forcing the tests into the sandbox though…

@SuperSandro2000 SuperSandro2000 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never got to the tests and then got distracted, but I prepared all the dependencies

Comment thread pkgs/by-name/he/headroom/package.nix Resolved
@attilaolah

This comment was marked as outdated.

@attilaolah
attilaolah force-pushed the headroom-ai branch 4 times, most recently from e890ec2 to 81ac7cd Compare October 5, 2026 11:15
@attilaolah

This comment was marked as outdated.

@attilaolah

Copy link
Copy Markdown
Contributor Author

Looks like there are dynamic imports or similar in the tests, so a plain rm -rf headroom is not going to be enough.

@attilaolah

This comment was marked as outdated.

@attilaolah

attilaolah commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Good thing this wasn't merged, it would have immediately become broken: master now builds Rust -sys libraries against system libs. So the Rust build now needs pkg-config and the system libraries to link against: oniguruma and sqlite.

@attilaolah

attilaolah commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor Author

I'll squash 0.42.0 into this PR, then handle the OTEL API separately; it might have some trickle-down effect depending on whether I also need to update the exporters / instrumentation wrappers / distro package.

@attilaolah

attilaolah commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Squashed 8d5b8ee and f1a2417 into 48ba5fb.

@attilaolah attilaolah changed the title headroom: init at 0.41.0 headroom: init at 0.42.0 Nov 8, 2026
@attilaolah
attilaolah marked this pull request as ready for review November 8, 2026 23:02
@attilaolah

Copy link
Copy Markdown
Contributor Author

PTAL, this is now for 0.42.0.

  • Cleanly builds against master, as of today
  • Applied PR suggestions
  • Grouped skipped tests per file, with counters: no file has all of its tests skipped, so no file test file is ignored

@attilaolah

Copy link
Copy Markdown
Contributor Author

Continuing the work on 0.43.1 in the meantime, that version finally switches to MCP2, but it also means its dependencies that themselves also depend on MCP need to be updated far enough that the process can use the same MCP version. The current blocker is logfire which is somewhat outdated in nixpkgs.

@attilaolah

Copy link
Copy Markdown
Contributor Author

Given how many dependencies there are, the blast radius of these updates is quite large.

  • 0.43.1 now requires an OpenTelemetry update
  • The OpenTelemetry update pulls in a Logfire reverse-dependency update, since currently packaged Logfire pins an upper OTEL API
  • Updating Logfire somehow breaks Garth
  • Garth upstream stopped development since Garmin changed its SSO, so this probably needs cleanup from nixpkgs
  • That in turn needs an update of reverse dependencies of Garth
  • Maybe other changes :(

@attilaolah

This comment was marked as resolved.

@attilaolah

Copy link
Copy Markdown
Contributor Author

Two days ago, upstream has released 0.44.0. I realise now this is going to be tough to keep up to date in nixpkgs, unless I start to relax dependencies, which I wanted to avoid.

Comment thread pkgs/by-name/he/headroom/package.nix Resolved
@SuperSandro2000

Copy link
Copy Markdown
Member

I realise now this is going to be tough to keep up to date in nixpkgs, unless I start to relax dependencies, which I wanted to avoid.

That is pretty normal and I do not think we get around this the long term.

https://github.com/headroomlabs-ai/headroom/releases/tag/v0.42.0

Assisted-by: OpenCode (GPT 5.6 Terra)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
@SuperSandroBot

This comment was marked as duplicate.

@SuperSandroBot

This comment was marked as duplicate.

@SuperSandroBot

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (ea7da58)

Command: nixpkgs-review pr 569784
Commit: fe5bb9f9110fc14a93176b1ee0f3e03f85d4bd9c (subsequent changes)
Merge: 8fb5ef82f3fc9d867e7a23782c6a64ae281a81dc

Logs: https://github.com/SuperSandro2000/nixpkgs-review-gha/actions/runs/43472888831/attempts/1


x86_64-linux

✅ 1 package built:
  • headroom

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 13, 2026
@SuperSandro2000
SuperSandro2000 added this pull request to the merge queue Nov 16, 2026
Merged via the queue into NixOS:master with commit d40b84f Nov 16, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants