Repository navigation
herdr-core, herdr-desktop: init - #581031
Conversation
|
|
Hi @tophcodes, the gpui touch bar patch isn't needed to build, and zed-industries/zed#65186 is still unmerged. Maybe drop it for now and add it back once Zed merges it, or report it to herdr-app ? |
|
@tophcodes I sent the Darwin changes as tophcodes#1, into
|
|
I agree with the touch bar patch, I'll keep that around locally for my mac but will report it upstream. I pulled your changes into my commits and added you as co-author. On top of yours I made a few more Darwin tweaks: it now builds in a strict sandbox, the Linux-only build inputs stay off Darwin, and the binary lives inside |
|
Thank you @tophcodes! |
|
|
@recutita, could you please review this ? |
❌
|
|
Hi @matteo-pacini, @tophcodes, Could you please take a look at the paradigm that we should follow vs herdr ? |
|
|
|
recutita
left a comment
There was a problem hiding this comment.
LGTM. Works end-to-end on aarch64-darwin, including machine add in herdr-app. @iamppborah IMO keeping zigDeps is better. The sandbox is off by default on Darwin, and herdr already uses zig_0_16.fetchDeps the same way. If we go with tophcodes#2 instead, regenerating ghostty-deps.nix needs to be wired into the updateScript manually.
| # Upstream CI also skips the timing-bound tests on macOS. | ||
| doCheck = !stdenv.hostPlatform.isDarwin; |
There was a problem hiding this comment.
Question: upstream CI on macOS runs every test except tests/stitch.rs. Do the others not work under Nix on Darwin? It doesn't affect how the package works, so LGTM either way.
There was a problem hiding this comment.
I ran them on my Intel Mac against nixos-26.05 with sandbox = true, without tests/stitch.rs and with two test threads, as upstream CI does. 12 of 294 tests failed.
Eight fail because the sandbox blocks TCP on localhost, notifyd and the login shell, or because its build directory makes a socket path too long for macOS. The other four failed on timing, which may be down to my slow machine. The comment above doCheck wrongly put this on upstream CI, it now names the sandbox.
@iamppborah, if you can run them on aarch64-darwin, I'd add __darwinAllowLocalNetworking and skip what still fails there. Otherwise I'd leave them off for this PR.
|
@iamppborah Agree with recutita, I'd keep |
Assisted-by: Claude Code (claude-opus-5-5) Co-authored-by: Philip Munksgaard <[email protected]> Co-authored-by: Prasurjya Pran Borah <[email protected]>
Assisted-by: Claude Code (claude-opus-5-5) Co-authored-by: Philip Munksgaard <[email protected]> Co-authored-by: Prasurjya Pran Borah <[email protected]>
matteo-pacini
left a comment
There was a problem hiding this comment.
LGTM, tested on NixOS
…#437) herdr-core and herdr-desktop come from nixpkgs-master (NixOS/nixpkgs#581031). BrightFalls, NightSprings and WorkLaptop get both; headless Nexus gets herdr-core only, which the app reaches over SSH. The legacy herdr TUI is removed with everything built for it: its module and sidebar rows, Nexus's herdr-server unit and the linger it needed, the Claude statusline wrapper and SessionStart hook, the Codex report hook, the opencode rows plugin, and the claude-code argv[0] fix that only its agent detection needed. Activation now deletes the hook files herdr wrote at runtime for Claude and Codex. The nixpkgs-master bump moves opencode to 2.2.5, whose node_modules fails its fixed-output hash (Hydra too), so opencode is held at 2.2.1 through a rev-pinned nixpkgs-opencode input until the Hydra job is green again. Co-authored-by: Claude Opus 5.5 <[email protected]>
* chore: bump nixpkgs, take herdr from nixos-unstable herdr-core and herdr-desktop are in nixos-unstable now (`NixOS/nixpkgs#581031`), so drop the nixpkgs-master override and build herdr-desktop from the same pin. Both resolve to the same store paths as before. Bump fallout: - brightfalls: OVMFFull no longer takes `qemu`; it overrides OVMF, so it inherits the vanilla-QEMU override and still hits the cache. - nexus: card-mod was removed upstream in favour of the UIX custom component. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore: drop the custom herdr-desktop patches herdr-desktop now comes unpatched from nixos-unstable, so HERDR_APP_MODS_PATH is gone. Nothing in the repo set it; home-manager still installs the mods into ~/.config/herdr-app/mods. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Pin nixpkgs-herdr to the merge commit of NixOS/nixpkgs#581031 until it reaches nixos-unstable. Taro's coding account gets herdr-core and linger for hc's user service. Its bashrc now leaves $?=0 in non-interactive shells: hc logs in with `ssh <target> exit`, which failed under HM's guard.
Adds herdr-core (
hc), which runs terminals and coding agents headlessly and keeps them running after you leave, and herdr-desktop (herdr-app), the desktop app on top of it.This combines my packaging with @Munksgaard's from #580925 and adds Darwin support from @iamppborah. Both are maintainers of the two packages and co-authors of both commits.
Notes for review:
LD_LIBRARY_PATHwould leak into every shell. The dlopened libraries go on the RUNPATH instead, like zed-editor.hc machine adddownloads instead of copying. Upstream copies its own binary to a machine with the same OS and CPU. A Nix-builthcdoes not run without its store path present, so every machine gets upstream's statically linked release build of the same version.xcrun,ln,cpandranlibby absolute path, which the sandbox lacks, so those are substituted.The packages were written with Claude Code (Claude Opus 5.5). I reviewed every change, built both packages and used them on NixOS, including
hc machine addagainst a second NixOS host. I also built both in the sandbox on an Intel Mac against nixos-26.05 and started the app there; @iamppborah built them on aarch64-darwin.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.