pokegold: init at unstable-2021-07-20

master
Simon Bruder 2021-08-07 11:14:46 +02:00
parent 21875f2d3d
commit 07f0431874
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
2 changed files with 31 additions and 0 deletions

View File

@ -8,6 +8,8 @@ final: prev: {
yellow = prev.callPackage ./pokeyellow { };
gold = prev.callPackage ./pokegold { };
all = prev.callPackage ./pokeall { };
};
}

29
pokegold/default.nix Normal file
View File

@ -0,0 +1,29 @@
{ 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 ];
};
}