4 , extraNativeBuildInputs ? [ ]
5 , extraBuildInputs ? [ ]
19 , baseRom ? requireFile {
20 name = "baserom.${region}.z64";
22 This nix expression requires that baserom.${region}.z64 is
23 already part of the store. To get this file you can dump your Super Mario 64 cartridge's contents
24 and add it to the nix store with nix-store --add-fixed sha256 <FILE>.
25 Note that if you are not using a US baserom, you must overwrite the "region" attribute with either "eu" or "jp".
28 "us" = "17ce077343c6133f8c9f2d6d6d9a4ab62c8cd2aa57c40aea1f490b4c8bb21d91";
29 "eu" = "c792e5ebcba34c8d98c0c44cf29747c8ee67e7b907fcc77887f9ff2523f80572";
30 "jp" = "9cf7a80db321b07a8d461fe536c02c87b7412433953891cdec9191bfad2db317";
35 stdenv.mkDerivation rec {
36 inherit pname version src postInstall;
42 ] ++ extraNativeBuildInputs;
47 ] ++ extraBuildInputs;
49 enableParallelBuilding = true;
53 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
58 patchShebangs extract_assets.py
59 ln -s ${baseRom} ./baserom.${region}.z64
66 cp build/${region}_pc/sm64.${region}.f3dex2e $out/bin/sm64ex
73 extraMeta.description or "Super Mario 64 port based off of decompilation" + "\n" + ''
74 Note that you must supply a baserom yourself to extract assets from.
75 If you are not using an US baserom, you must overwrite the "region" attribute with either "eu" or "jp".
76 If you would like to use patches sm64ex distributes as makeflags, add them to the "compileFlags" attribute.
78 mainProgram = "sm64ex";
79 license = licenses.unfree;
81 platforms = platforms.unix;