[Guix packaging] NitroHack #456
Labels
No labels
accessibility
bug
category:ai-tool
category:browser
category:command-line-tool
category:compiler-toolchain
category:desktop-application
category:developer-tool
category:editor-extension
category:emulator
category:font
category:game
category:input-accessibility
category:library-framework
category:mud-client
category:multimedia
category:networking-client
category:programming-language
category:roguelike
category:storage-media-tool
category:system-tool
category:terminal-application
complexity:high
complexity:low
complexity:medium
difficulty:blocked
difficulty:easy
difficulty:hard
difficulty:moderate
documentation
duplicate
enhancement
good first issue
gooflow:guix-package-high
gooflow:guix-package-moderate
gooflow:guix-package-quality-gates
gooflow:guix-research-disposition
gooflow:guix-runtime-evidence-refresh
help wanted
invalid
kind:disposition
kind:packaging
needs:license-investigation
priority:quick
question
ready-for-agent
state:available-elsewhere
state:blocked
state:deferred
state:out-of-scope
state:ready
state:research
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tay/guix-channel#456
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Candidate
Scope
Package the independently playable roguelike from source. The canonical repository, latest stable release, source hash, complete dependency closure, and relationship to parent games or sibling forks must be established before implementation. Do not substitute an opaque prebuilt binary.
Research checklist
Acceptance checks
guix lint -L . <package>has no package-specific findings.guix build -L . --no-grafts <package>succeeds without network access or opaque binaries.guix build -L . --no-grafts --check <package>verifies reproducibility.Imported from GitHub issue/PR. Originally posted by htayj on 2026-08-24T17:32:12Z.
Goocastle recorded disposition: implementation-ready.
Created implementation ticket: #709.
Implementation-ready delivery brief for new package nitrohack. No same-upstream NitroHack package or reference exists in the local channel; dnethack, grunthack, and other NetHack variants are distinct projects. Canonical upstream is the archived https://github.com/DanielT/NitroHack repository, default branch master, latest immutable tag 4.0.4 at commit 21b9774b24efbdafdd20e152f9b1e5ed2a7b4150 (no GitHub release). Fetch https://github.com/DanielT/NitroHack/archive/21b9774b24efbdafdd20e152f9b1e5ed2a7b4150.tar.gz; observed SHA-256 is 5db7e86e88ef3ac03a10cfe29738e4c45ab24be2ed552ebf8c71d6d11034682d. The fixed tree has no Git submodules or font, tile, sound, or other binary asset origins; code, maps, generated nhdat, and documentation come from this one origin. libnitrohack/dat/license at that revision is the NitroHack/NetHack General Public License, granting copy, modification, source, and redistribution rights with copyleft conditions; dist/debian/copyright records Daniel Thaler and the NetHack Devteam. Install that license plus README, doc/Guidebook.txt, and the Debian copyright/notice. Build metadata is top-level CMake plus libnitrohack/util/CMakeLists.txt: generated parsers require bison and flex; libnitrohack_client links jansson; the curses UI links ncursesw. Use cmake-build-system or equivalent with cmake, gcc-toolchain, bison, flex, jansson, and ncurses inputs; pass -DENABLE_SERVER=OFF to omit the optional PostgreSQL network server and set BINDIR, LIBDIR, DATADIR, and SHELLDIR to store output paths. No upstream test target was found, so set package tests accordingly and rely on the runtime proof. Package module is tay/packages/nitrohack.scm and package name is nitrohack. The README/source show local curses play, configuration/save/log state under XDG_CONFIG_HOME/NitroHack or HOME/.config/NitroHack, and no updater, telemetry, or runtime download; network client/server code exists, so the wrapper smoke must remain local. Wrap the real binary, keep normal argv forwarding, and add exact nitrohack --guix-smoke: use the channel's existing util-linux script/PTY pattern with -@ -u goocastle-smoke to start a fresh local game, perform deterministic movement, save/quit, relaunch, load the save, quit, assert gameplay-title and restored-game text, assert all mutable files stay below fresh XDG/HOME and the store is untouched, then print exactly one stdout line: nitrohack guix smoke passed. Install nhdat, license, README/Guidebook, and copyright notices in the output. This research phase had no Guix daemon, so no build, lint, or reproducibility proof is claimed. Acceptance is guix lint -L . nitrohack; daemon-backed guix build -L . --no-grafts nitrohack and --check; source/license notice checks; and the fresh HOME/XDG smoke with screenshot .goocastle/evidence/issue-456.png.
Imported from GitHub comment. Originally posted by htayj on 2026-09-11T13:23:57Z.
Published signed/authenticated
d1dfab4b13. NitroHack exact git-pinned native package: local daemon build, reproducibility --check, offline package lint and integrated make check-source-count check-grunthack check-nitrohack passed. Removed shipped --guix-smoke branches and Goocastle dependencies/contracts; standalone test drives three actual processes with real movement/search turns, full inventory, native save/exit, exact HUD/map/position/stats/turn/inventory restoration and further gameplay/resave. PrivateHOME/XDG and verified network/mount/PID namespaces, readonlystore, unchanged NAR 06fb6wmwfcjnibjari0565aj1j6hjzz166h9r4v0hk2zvapdi1nj. Evidence /tmp/omp-nitrohack-final; actual native terminal screenshot .goocastle/evidence/issue-456.png rendered in matching geometry and inspected. No upstream test suite exists; runtime proof is independent. No userprofile deployment; unrelated staged Fourk warning remains. NitroHack retains network client; optional PostgreSQL server omitted per explicit original456brief. Exercised localcurses only, remoteprotocol untested. Same-file saved-game continuity, screenshotHP15/16T9; renamedNGPL notices retained.