diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/emulators/melonDS/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/emulators/melonDS/default.nix | 58 |
1 files changed, 38 insertions, 20 deletions
diff --git a/nixpkgs/pkgs/applications/emulators/melonDS/default.nix b/nixpkgs/pkgs/applications/emulators/melonDS/default.nix index 50389db2b45e..0603373dfedd 100644 --- a/nixpkgs/pkgs/applications/emulators/melonDS/default.nix +++ b/nixpkgs/pkgs/applications/emulators/melonDS/default.nix @@ -1,54 +1,72 @@ { lib -, fetchFromGitHub -, stdenv +, SDL2 , cmake , extra-cmake-modules +, fetchFromGitHub , libarchive , libpcap +, libsForQt5 , libslirp +, libGL , pkg-config -, qtbase -, qtmultimedia -, SDL2 +, stdenv , wayland -, wrapQtAppsHook +, zstd }: -stdenv.mkDerivation rec { +let + inherit (libsForQt5) + qtbase + qtmultimedia + wrapQtAppsHook; +in +stdenv.mkDerivation (finalAttrs: { pname = "melonDS"; - version = "0.9.5"; + version = "0.9.5-unstable-2024-01-17"; src = fetchFromGitHub { - owner = "Arisotura"; - repo = pname; - rev = version; - sha256 = "sha256-n4Vkxb/7fr214PgB6VFNgH1tMDgTBS/UHUQ6V4uGkDA="; + owner = "melonDS-emu"; + repo = "melonDS"; + rev = "7897bd387bfd37615a049eba28d02dc23cfa5194"; + hash = "sha256-7BrUa8QJnudJkiCtuBdfar+FeeJSrdMGJdhXrPP6uww="; }; nativeBuildInputs = [ cmake - extra-cmake-modules pkg-config wrapQtAppsHook ]; buildInputs = [ + SDL2 + extra-cmake-modules libarchive libslirp + libGL qtbase qtmultimedia - SDL2 wayland + zstd ]; - qtWrapperArgs = [ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" ]; + strictDeps = true; + + qtWrapperArgs = [ + "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" + ]; - meta = with lib; { + meta = { homepage = "https://melonds.kuribo64.net/"; description = "Work in progress Nintendo DS emulator"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ artemist benley shamilton xfix ]; - platforms = platforms.linux; + license = with lib.licenses; [ gpl3Plus ]; mainProgram = "melonDS"; + maintainers = with lib.maintainers; [ + AndersonTorres + artemist + benley + shamilton + xfix + ]; + platforms = lib.platforms.linux; }; -} +}) |