NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.51k stars 12.99k forks source link

Package request: Zelda64Recomp #310947

Open qubitnano opened 1 month ago

qubitnano commented 1 month ago

Project description

Zelda 64: Recompiled is a project that uses N64: Recompiled to statically recompile Majora's Mask (and soon Ocarina of Time) into a native port with many new features and enhancements. This project uses RT64 as the rendering engine to provide some of these enhancements.

Metadata

Add a :+1: reaction to issues you find important.

qubitnano commented 1 month ago

Upstream provides a binary but as of v1.0.0 it doesn't compile as some files from the rsp folder are not there. From README

Instructions on how to build this project are being worked on and will be available in the near future.

Likely requires N64Recomp itself first to populate this folder

qubitnano commented 1 month ago

Source has been updated with build instructions! Now the fun begins...

boomshroom commented 1 month ago

Zelda64Recomp seems to depend on a matching build from the mm decomp rather than using a raw rom directly (though this seems to be planned to change). Building said rom from the decomp uses a bundled, pre-built ido compiler. It seems to be possible to run the ido compiler through steam-run, but I'm not sure what the best course of action for packaging it would be.

qubitnano commented 1 month ago

I was able to patchelf it to use the nixos interpreter.

I've managed to build everything but it segfaults at launch. mmdecomp + new python packages, n64recomp and zelda64recomp. I've had to wrestle with building the recomp using clang's stdenv since upstream uses that so it's probably something with that.

qubitnano commented 1 month ago

I figured it out, please test https://github.com/NixOS/nixpkgs/pull/313013