diff --git a/pkgs/by-name/sm64baserom/package.nix b/pkgs/by-name/sm64baserom/package.nix index 574a59e42..0f9c32da1 100644 --- a/pkgs/by-name/sm64baserom/package.nix +++ b/pkgs/by-name/sm64baserom/package.nix @@ -1,10 +1,10 @@ # "baseRom" (previously) / "sm64baserom" (in the future) is used by `sm64coopdx`, `sm64ex-coop`: braindead packages which use `requireFile` instead of fetching their sources. -{ fetchurl, ... }: +{ fetchurl, region ? "us", showRegionMessage ? false }: let - baserom = fetchurl { + baserom.us = fetchurl { url = "https://github.com/jb1361/Super-Mario-64-AI/raw/development/Super%20Mario%2064%20(USA).z64"; hash = "sha256-F84Hc0PGEz+Mny1tbZpKtiyM0qpXxArqH0kLTIuyHZE="; }; in { - romPath = "${baserom}"; + romPath = "${baserom.${region}}"; }