commit
8bffb0b8df
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
description = "A very basic flake";
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs }: {
|
||||||
|
overlays.default = import ./overlay.nix;
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
final: prev:
|
||||||
|
let
|
||||||
|
table = final.callPackage ./table.nix { };
|
||||||
|
in {
|
||||||
|
requireFile = { ... }@args: let
|
||||||
|
hash = args.hash or args.sha256 or args.sha1;
|
||||||
|
in table.${hash} or (prev.requireFile args);
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ lib, runCommand, fetchFromBittorrent, p7zip}:
|
||||||
|
let
|
||||||
|
torrent = fetchFromBittorrent {
|
||||||
|
url = "https://archive.org/download/ZELOOTD/ZELOOTD_archive.torrent";
|
||||||
|
hash = "sha256-4CaZ2nv/vnweYwKd/qjfO8se71D1vfH9qhyDH9Aj21E=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
runCommand "oot-debug.z64" { nativeBuildInputs = [ p7zip ]; } ''
|
||||||
|
7z x "${torrent}/ZELOOTD.zip"
|
||||||
|
cp "ZELOOTD.z64" "$out"
|
||||||
|
''
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ lib, runCommand, fetchFromBittorrent }:
|
||||||
|
let
|
||||||
|
torrent = fetchFromBittorrent {
|
||||||
|
url = "https://archive.org/download/super-mario-64-usa/super-mario-64-usa_archive.torrent";
|
||||||
|
hash = "sha256-6tkCKQD2modogcTo0ESookWJDm7rjA79t5ZOVz3luYM=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
runCommand "baserom.us.z64" { } ''
|
||||||
|
cp "${torrent}/Super Mario 64 (U) [!].z64" "$out"
|
||||||
|
''
|
Loading…
Reference in New Issue