swap-watchdog/.dagger
Philip Peterson 141d4f7690 Build swap-watchdog binaries via a Nix-provisioned Dagger pipeline
Replaces the generated dagger scaffold with a real BuildLinux function
that compiles swap-watchdog, force-quit-gui, and kdotool (not packaged
for Fedora, so built from source via cargo) inside an ephemeral
nixos/nix container -- no gtk3-devel/dbus-devel/rust toolchain needs
installing on the host. The host's own Go toolchain is mounted in so
the build matches go.mod's required version exactly.

Nix's glibc uses a non-FHS dynamic linker path that doesn't exist
outside the container, so the built binaries are patched with
patchelf to point at the host's real ld.so; the stale nix-store
RUNPATH entries are harmless since ld.so just skips nonexistent
directories and falls through to the host's normal library search
path, where the real libgtk-3/libdbus-1/etc already live.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-06 06:54:49 -08:00
..
.gitattributes Add install script, license, and dagger pipeline scaffolding 2026-10-06 06:20:03 -08:00
.gitignore Add install script, license, and dagger pipeline scaffolding 2026-10-06 06:20:03 -08:00
go.mod Add install script, license, and dagger pipeline scaffolding 2026-10-06 06:20:03 -08:00
go.sum Add install script, license, and dagger pipeline scaffolding 2026-10-06 06:20:03 -08:00
main.go Build swap-watchdog binaries via a Nix-provisioned Dagger pipeline 2026-10-06 06:54:49 -08:00