pokered: init at unstable-2021-08-01
This commit is contained in:
parent
350b8ba0ef
commit
76d00c4345
10
default.nix
10
default.nix
|
@ -1 +1,9 @@
|
||||||
final: prev: { }
|
final: prev: {
|
||||||
|
# roms
|
||||||
|
|
||||||
|
pokegb = prev.recurseIntoAttrs {
|
||||||
|
# official (chronological order)
|
||||||
|
|
||||||
|
red = prev.callPackage ./pokered { };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -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
29
pokered/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
Reference in a new issue