mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
Cemu: 2.0-92 -> 2.2 (#353870)
This commit is contained in:
commit
9c8b5395e7
@ -2351,7 +2351,7 @@
|
||||
email = "baduhai@pm.me";
|
||||
github = "baduhai";
|
||||
githubId = 31864305;
|
||||
name = "William";
|
||||
name = "William Hai";
|
||||
};
|
||||
baitinq = {
|
||||
email = "manuelpalenzuelamerino@gmail.com";
|
||||
|
@ -1,8 +1,8 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4b2b789..48d9be0 100644
|
||||
index 54e2012..a9b6b0e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -92,6 +92,7 @@ find_package(pugixml REQUIRED)
|
||||
@@ -149,6 +149,7 @@ find_package(pugixml REQUIRED)
|
||||
find_package(RapidJSON REQUIRED)
|
||||
find_package(Boost COMPONENTS program_options filesystem nowide REQUIRED)
|
||||
find_package(libzip REQUIRED)
|
||||
|
13
pkgs/by-name/ce/cemu/0001-glslang-cmake-target.patch
Normal file
13
pkgs/by-name/ce/cemu/0001-glslang-cmake-target.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/Cafe/CMakeLists.txt.orig b/src/Cafe/CMakeLists.txt
|
||||
index 91d257b..cff779a 100644
|
||||
--- a/src/Cafe/CMakeLists.txt
|
||||
+++ b/src/Cafe/CMakeLists.txt
|
||||
@@ -545,7 +545,7 @@ target_link_libraries(CemuCafe PRIVATE
|
||||
Boost::nowide
|
||||
CURL::libcurl
|
||||
fmt::fmt
|
||||
- glslang::SPIRV
|
||||
+ glslang::glslang
|
||||
ih264d
|
||||
OpenSSL::Crypto
|
||||
OpenSSL::SSL
|
@ -47,15 +47,16 @@ let
|
||||
hash = "sha256-gf47uLeNiXQic43buB5ZnMqiotlUfIyAsP+3H7yJuFg=";
|
||||
};
|
||||
};
|
||||
in stdenv.mkDerivation (finalAttrs: {
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "cemu";
|
||||
version = "2.0-92";
|
||||
version = "2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cemu-project";
|
||||
repo = "Cemu";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-bjt+2RzmG8iKcdyka4HsHM5NEzCwGah4s9eiywSHXbw=";
|
||||
hash = "sha256-d4FMAj99SPj5S1p5nAUFNo386ZJvWxOKD9iGxHJYVBI=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@ -63,6 +64,7 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||
# > The following imported targets are referenced, but are missing:
|
||||
# > SPIRV-Tools-opt
|
||||
./0000-spirv-tools-opt-cmakelists.patch
|
||||
./0001-glslang-cmake-target.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -113,15 +115,20 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
preConfigure = let
|
||||
tag = lib.last (lib.splitString "-" finalAttrs.version);
|
||||
in ''
|
||||
rm -rf dependencies/imgui
|
||||
# cemu expects imgui source code, not just header files
|
||||
ln -s ${imgui'.src} dependencies/imgui
|
||||
substituteInPlace src/Common/version.h --replace-fail " (experimental)" "-${tag} (experimental)"
|
||||
substituteInPlace dependencies/gamemode/lib/gamemode_client.h --replace-fail "libgamemode.so.0" "${gamemode.lib}/lib/libgamemode.so.0"
|
||||
'';
|
||||
preConfigure =
|
||||
let
|
||||
tag = lib.splitString "." (lib.last (lib.splitString "-" finalAttrs.version));
|
||||
majorv = builtins.elemAt tag 0;
|
||||
minorv = builtins.elemAt tag 1;
|
||||
in
|
||||
''
|
||||
rm -rf dependencies/imgui
|
||||
# cemu expects imgui source code, not just header files
|
||||
ln -s ${imgui'.src} dependencies/imgui
|
||||
substituteInPlace CMakeLists.txt --replace-fail "EMULATOR_VERSION_MAJOR \"0\"" "EMULATOR_VERSION_MAJOR \"${majorv}\""
|
||||
substituteInPlace CMakeLists.txt --replace-fail "EMULATOR_VERSION_MINOR \"0\"" "EMULATOR_VERSION_MINOR \"${minorv}\""
|
||||
substituteInPlace dependencies/gamemode/lib/gamemode_client.h --replace-fail "libgamemode.so.0" "${gamemode.lib}/lib/libgamemode.so.0"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
@ -139,13 +146,15 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
preFixup = let
|
||||
libs = [ vulkan-loader ] ++ cubeb.passthru.backendLibs;
|
||||
in ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath libs}"
|
||||
)
|
||||
'';
|
||||
preFixup =
|
||||
let
|
||||
libs = [ vulkan-loader ] ++ cubeb.passthru.backendLibs;
|
||||
in
|
||||
''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath libs}"
|
||||
)
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
@ -161,7 +170,11 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||
homepage = "https://cemu.info";
|
||||
license = lib.licenses.mpl20;
|
||||
mainProgram = "cemu";
|
||||
maintainers = with lib.maintainers; [ zhaofengli baduhai AndersonTorres ];
|
||||
maintainers = with lib.maintainers; [
|
||||
zhaofengli
|
||||
baduhai
|
||||
AndersonTorres
|
||||
];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user