libretro.np2kai: move to retroarch/cores

This commit is contained in:
Thiago Kenji Okada 2024-11-20 11:53:47 +00:00
parent b336ab6fa3
commit d9c95ab53e
2 changed files with 33 additions and 14 deletions

View File

@ -201,21 +201,9 @@ lib.makeScope newScope (self: rec {
nestopia = self.callPackage ./cores/nestopia.nix { };
nxengine = self.callPackage ./cores/nxengine.nix { };
np2kai = self.callPackage ./cores/np2kai.nix { };
np2kai = mkLibretroCore rec {
core = "np2kai";
makeFlags = [
# See https://github.com/AZO234/NP2kai/tags
"NP2KAI_VERSION=rev.22"
"NP2KAI_HASH=${(getCoreSrc core).rev}"
];
preBuild = "cd sdl";
meta = {
description = "Neko Project II kai libretro port";
license = lib.licenses.mit;
};
};
nxengine = self.callPackage ./cores/nxengine.nix { };
o2em = mkLibretroCore {
core = "o2em";

View File

@ -0,0 +1,31 @@
{
lib,
fetchFromGitHub,
mkLibretroCore,
}:
mkLibretroCore rec {
core = "np2kai";
version = "unstable-2024-11-03";
src = fetchFromGitHub {
owner = "AZO234";
repo = "NP2kai";
rev = "4b109eaac4f79b04065ff5025319fce51537e04d";
hash = "sha256-tRFvK8d5Y/umy/b1BKN85ZSaDWyK95hII4RVng7A5uU=";
fetchSubmodules = true;
};
makeFlags = [
# See https://github.com/AZO234/NP2kai/tags
"NP2KAI_VERSION=rev.22"
"NP2KAI_HASH=${builtins.substring 0 7 src.rev}"
];
preBuild = "cd sdl";
meta = {
description = "Neko Project II kai libretro port";
homepage = "https://github.com/AZO234/NP2kai";
license = lib.licenses.mit;
};
}