Merge pull request #324673 from matteo-pacini/melonds
melonDS: darwin support
This commit is contained in:
commit
c1ff222bfb
@ -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;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user