Add a Nix flake for Windows cross-builds #609
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/609"
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?
Imported from fxceless/victory-fork. Originally posted by colonelpanic8 on 2026-11-25T03:12:15Z.
Summary
Validation
x86_64-pc-windows-msvcand repeated the build with empty Cargo build directories.victory.exe --helpin Wine and passed 19 focused tests acrossvictory,victory-core, andvictory-pe.xtasktests, the asset-policy check, Nix formatting and flake evaluation, and strict Clippy forxtaskand the Windows CLI with diagnostics enabled.Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T03:22:14Z.
I reproduced a bootstrap failure in the optional direnv path on
62b8c7317cde7133f245603acbfe20a2bd0c073c. With direnv 2.32.1 and no preloaded nix-direnv,direnv allow .followed bydirenv exec . /bin/truelogs a hash mismatch for the source URL in.envrc. Check stderr because the command itself can return zero.The downloaded bytes have the SRI hash
sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM=. I confirmed thatdirenv fetchurlaccepts this value and returns the same bytes. Updating the pin would fix the observed fetch failure.On the same head, all four Linux xtask tests passed. The installed pre-commit hook accepted the 172 staged repository files and rejected a staged file with an unapproved synthetic extension. The CLI and test targets passed Windows MSVC cross-target
cargo checkwith diagnostics andblake3/pure. Nix parsed the flake and the Rust manifest matched its hash. Full shell evaluation stopped because the isolated Debian Nix package expected/usr/bin/bash-static. The linked cargo-xwin build and Wine execution remain unverified in this check.Recheck on
606811b5d85948a18138db494b0b075a5188bee3The direnv mismatch still occurs with a clean direnv 2.32.1 configuration. In a separate fixture, changing only the pin to the hash above let both
.envrc.overrideand.envrc.localload without the mismatch.Default shell derivation evaluation now passes in an isolated store with Nix 2.26.3. I primed the store with the byte-verified Rust 1.98.1 manifest using
nix store add-file channel-rust-1.98.1.toml. Its flat store path matched the Fenix fetch output, and the shell evaluated to/nix/store/ganc1wixymkxs5haz1hvx9g0sls3mkvn-nix-shell.drv. A dry run reported 17 derivations to build and 3,831.20 MiB of unpacked downloads, which exceeded available local space.The revised head passed four Linux xtask tests, the asset policy and staged hook over 174 files, and locked Windows MSVC CLI/test
cargo checkwith diagnostics andblake3/pure. Full shell realization, Windows linking and Wine execution remain unverified here. No game files were used.AI-assisted using Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.