Merge pull request #324673 from matteo-pacini/melonds

melonDS: darwin support
This commit is contained in:
Thiago Kenji Okada 2024-07-05 11:58:38 +00:00 committed by GitHub
commit c1ff222bfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,7 @@
, libarchive , libarchive
, libpcap , libpcap
, libsForQt5 , libsForQt5
, qt6
, libslirp , libslirp
, pkg-config , pkg-config
, stdenv , stdenv
@ -16,7 +17,8 @@
}: }:
let let
inherit (libsForQt5) qt = if stdenv.isLinux then libsForQt5 else qt6;
inherit (qt)
qtbase qtbase
qtmultimedia qtmultimedia
wrapQtAppsHook; wrapQtAppsHook;
@ -46,16 +48,26 @@ stdenv.mkDerivation (finalAttrs: {
libGL libGL
qtbase qtbase
qtmultimedia qtmultimedia
wayland
zstd zstd
] ++ lib.optionals stdenv.isLinux [
wayland
]; ];
strictDeps = true; strictDeps = true;
qtWrapperArgs = [ qtWrapperArgs = lib.optionals stdenv.isLinux [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}"
] ++ lib.optionals stdenv.isDarwin [
"--prefix DYLD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}"
]; ];
installPhase = lib.optionalString stdenv.isDarwin ''
runHook preInstall
mkdir -p $out/Applications
cp -r melonDS.app $out/Applications/
runHook postInstall
'';
passthru = { passthru = {
updateScript = unstableGitUpdater { }; updateScript = unstableGitUpdater { };
}; };
@ -88,6 +100,6 @@ stdenv.mkDerivation (finalAttrs: {
benley benley
shamilton shamilton
]; ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux ++ lib.platforms.darwin;
}; };
}) })