pokecrystal: init at unstable-2021-07-20

This commit is contained in:
Simon Bruder 2021-08-07 11:19:26 +02:00
parent 07f0431874
commit a6488246b2
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 33 additions and 0 deletions

View file

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

31
pokecrystal/default.nix Normal file
View file

@ -0,0 +1,31 @@
{ lib, stdenv, fetchFromGitHub, rgbds }:
stdenv.mkDerivation rec {
pname = "pokecrystal";
version = "unstable-2021-07-20";
src = fetchFromGitHub {
owner = "pret";
repo = pname;
rev = "d93c13c94c3680bace68ee2333dd81b1efad1734";
sha256 = "sha256-x1sVaZVmZP9iX7jkXhh4owGdzcQ8+wwDrV6VkfhtBVk=";
};
nativeBuildInputs = [ rgbds ];
makeFlags = [ "crystal" "crystal11" ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp pokecrystal{,11}.gbc $out
runHook postInstall
'';
meta = with lib; {
description = "ROM built from disassembly of Pokémon Crystal";
homepage = "https://github.com/pret/pokcrystal";
license = licenses.unfree;
maintainers = with maintainers; [ sbruder ];
};
}