From aeb2d33ee623ede8c88f0f492c80f437889adfe1 Mon Sep 17 00:00:00 2001 From: Shelvacu Date: Tue, 24 Sep 2024 15:32:33 -0700 Subject: [PATCH] initial commit --- .gitignore | 1 + flake.lock | 7 +++++++ flake.nix | 9 +++++++++ sm64baserom.nix | 16 ++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 .gitignore create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 sm64baserom.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d6944e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/result* diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..5999137 --- /dev/null +++ b/flake.lock @@ -0,0 +1,7 @@ +{ + "nodes": { + "root": {} + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..933d56b --- /dev/null +++ b/flake.nix @@ -0,0 +1,9 @@ +{ + outputs = { ... }: { + overlays.default = ( + final: _prev: { + sm64baserom = final.callPackage ./sm64baserom.nix { }; + } + ); + }; +} diff --git a/sm64baserom.nix b/sm64baserom.nix new file mode 100644 index 0000000..ba303b2 --- /dev/null +++ b/sm64baserom.nix @@ -0,0 +1,16 @@ +{ + fetchurl, + region ? "us", +}: +# TODO: find sources for EU and JP versions +assert region == "us"; +fetchurl { + hash = "sha256-F84Hc0PGEz+Mny1tbZpKtiyM0qpXxArqH0kLTIuyHZE="; + urls = [ + "https://github.com/ToxicBanana1/baserom.us.z64/raw/refs/heads/main/baserom.us.z64" + "https://github.com/jb1361/Super-Mario-64-AI/raw/refs/heads/development/Super%20Mario%2064%20(USA).z64" + "https://archive.org/download/super-mario-64-usa_202401/Super%20Mario%2064%20%28USA%29.z64" + "https://github.com/MarioUser64/sm64ex/raw/refs/heads/master/baserom.us.z64" + "https://github.com/Xelpm1S/rom/raw/refs/heads/master/baserom.us.z64" + ]; +}