This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
pokegb-nix/pokegold/default.nix

30 lines
709 B
Nix

{ lib, stdenv, fetchFromGitHub, rgbds }:
stdenv.mkDerivation rec {
pname = "pokegold";
version = "unstable-2021-07-20";
src = fetchFromGitHub {
owner = "pret";
repo = pname;
rev = "c91db56f422a6604d00a2df4e8c9f14879f70928";
sha256 = "sha256-OenoCmPgVfTpS4oOFaEXFGP+1ebVHnnMsCcOm3G7VUA=";
};
nativeBuildInputs = [ rgbds ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp poke{gold,silver}.gbc $out
runHook postInstall
'';
meta = with lib; {
description = "ROM built from disassembly of Pokémon Gold/Silver";
homepage = "https://github.com/pret/pokegold";
license = licenses.unfree;
maintainers = with maintainers; [ sbruder ];
};
}