libretro.citra-canary: init at unstable-2022-01-21

This commit is contained in:
Thiago Kenji Okada 2022-01-23 13:06:05 -03:00
parent d32ccbc6da
commit 9655e2f795
3 changed files with 38 additions and 0 deletions

View File

@ -313,6 +313,24 @@ in
postBuild = "cd src/citra_libretro";
};
citra-canary = mkLibRetroCore {
core = "citra-canary";
description = "Port of Citra Canary/Experimental to libretro";
license = lib.licenses.gpl2Plus;
extraNativeBuildInputs = [ cmake pkg-config ];
extraBuildInputs = [ libGLU libGL boost ];
makefile = "Makefile";
cmakeFlags = [
"-DENABLE_LIBRETRO=ON"
"-DENABLE_QT=OFF"
"-DENABLE_SDL2=OFF"
"-DENABLE_WEB_SERVICE=OFF"
"-DENABLE_DISCORD_PRESENCE=OFF"
];
preConfigure = "sed -e '77d' -i externals/cmake-modules/GetGitRevisionDescription.cmake";
postBuild = "cd src/citra_libretro";
};
desmume = mkLibRetroCore {
core = "desmume";
description = "libretro wrapper for desmume NDS emulator";

View File

@ -110,6 +110,15 @@
"leaveDotGit": true,
"deepClone": true
},
"citra-canary": {
"owner": "libretro",
"repo": "citra",
"rev": "5401990a9be46e4497abc92db3d5f2042674303d",
"sha256": "JKKJBa840i7ESwMrB5tKamCBmrYvvoEUdibqxkWg5Gc=",
"fetchSubmodules": true,
"leaveDotGit": true,
"deepClone": true
},
"desmume": {
"owner": "libretro",
"repo": "desmume",

View File

@ -32,6 +32,13 @@ CORES = {
"deep_clone": True,
"leave_dot_git": True,
},
"citra-canary": {
"repo": "citra",
"fetch_submodules": True,
"deep_clone": True,
"leave_dot_git": True,
"rev": "canary",
},
"desmume": {"repo": "desmume"},
"desmume2015": {"repo": "desmume2015"},
"dolphin": {"repo": "dolphin"},
@ -107,6 +114,7 @@ def get_repo_hash_fetchFromGitHub(
deep_clone=False,
fetch_submodules=False,
leave_dot_git=False,
rev=None,
):
extra_args = []
if deep_clone:
@ -115,6 +123,9 @@ def get_repo_hash_fetchFromGitHub(
extra_args.append("--fetch-submodules")
if leave_dot_git:
extra_args.append("--leave-dot-git")
if rev:
extra_args.append("--rev")
extra_args.append(rev)
result = subprocess.run(
["nix-prefetch-github", owner, repo, *extra_args],
check=True,