pokered: init at unstable-2021-08-01

This commit is contained in:
Simon Bruder 2021-08-07 11:01:17 +02:00
parent 350b8ba0ef
commit 76d00c4345
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 40 additions and 2 deletions

View file

@ -1 +1,9 @@
final: prev: { } final: prev: {
# roms
pokegb = prev.recurseIntoAttrs {
# official (chronological order)
red = prev.callPackage ./pokered { };
};
}

View file

@ -44,7 +44,8 @@
}; };
packages = flake-utils.lib.flattenTree { packages = flake-utils.lib.flattenTree {
inherit (pkgs); inherit (pkgs)
pokegb;
}; };
})); }));
} }

29
pokered/default.nix Normal file
View file

@ -0,0 +1,29 @@
{ lib, stdenv, fetchFromGitHub, rgbds }:
stdenv.mkDerivation rec {
pname = "pokered";
version = "unstable-2021-08-01";
src = fetchFromGitHub {
owner = "pret";
repo = pname;
rev = "236426138bf085c4b7b854b43d910370fffca290";
sha256 = "sha256-wHYVNCOrH8U0ggx72iuDmtDsTSrpUiCqKt7h4Widkws=";
};
nativeBuildInputs = [ rgbds ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp poke{red,blue}.gbc $out
runHook postInstall
'';
meta = with lib; {
description = "ROM built from disassembly of Pokémon Red/Blue";
homepage = "https://github.com/pret/pokered";
license = licenses.unfree;
maintainers = with maintainers; [ sbruder ];
};
}