Build bundled DFHack with GCC 15 #263
No reviewers
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config!263
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/262-dfhack-gcc15"
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?
The rejected nixpkgs update supplies GCC 16.2.0, but DFHack 53.16-r1.1 explicitly rejects compilers newer than GCC 15 during CMake configuration. Select gcc15Stdenv only within the Dwarf Fortress package set, where the upstream gccStdenv argument is used solely for DFHack. The fleet compiler and the underlying game/core Therapist derivations remain unchanged.
Document the temporary override and track it through the manual-pin lifecycle contract: an owner, review date, incident/source identities, retained-evidence checksum, and an exact forward patch bound for reverse application. The scheduled lifecycle job can retest an unpinned candidate and propose removal for review.
Refs #262. Apply this fix before retrying the input update; this MR preserves the current lockfile.
Validation:
nix flake checkpassed with the lifecycle record included; existing platform-deprecation warnings remain.b6c8664de9b6cc07fe5666a29f91884ba81197c4, GCC 15.3.0 successfully built standalone DFHack and the complete Dwarf Fortress bundle, including upstream wrapper and Therapist install checks.python3 tests/nixos-pin-lifecycle-integration.pyandbash tests/nixos-pin-lifecycle-regressions.shpassed.2439ec3.Remaining acceptance: required MR checks, a full fleet build with the retried input update, deployment and a no-op follow-up. No activation was performed. Keep #262 open until that evidence is available. The malformed advisory JSON result and incomplete incident diagnostic excerpt are separate follow-ups.
Automated code review
Reviewed commit:
1403904276b9939a013a1916e672a6bdd6741f1aVerdict: Ready to merge
No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.
Overall assessment
The PR introduces a temporary GCC 15 override for the Dwarf Fortress package to resolve DFHack build failures with GCC 16. It adds a new package definition, updates documentation, and includes lifecycle metadata for the pin. The changes are scoped correctly within the NixOS configuration structure.
Blocking findings
None.
Important findings
None.
Suggestions
-
Impact: The overlay is added tomodules/common/nix-settings.nix, making the package available globally. While acceptable for shared packages, it increases evaluation scope for hosts that do not use Dwarf Fortress.Suggested fix: Consider moving this overlay to host-specific configuration files if strict scoping is desired, though global availability is a common and acceptable pattern in NixOS.
Tests and validation
Questions
dwarf-fortress-fullpackage been tested on all affected hosts (electra, lena, lyra, vega) to ensure no unexpected side effects from the GCC override?Review limitations
Diff coverage
README.md: reviewed — included in a context-limited batchmodules/common/nix-settings.nix: reviewed — included in a context-limited batchpackages/dwarf-fortress-full/default.nix: reviewed — included in a context-limited batchremediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.json: reviewed — included in a context-limited batchremediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.remove.patch: reviewed — included in a context-limited batchReview metadata