Skip to content

Commit

Permalink
{ares,bsnes-hd,higan}: update (#353102)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada authored Dec 10, 2024
2 parents 0311f6c + ecaa6df commit 2f3930f
Show file tree
Hide file tree
Showing 13 changed files with 374 additions and 321 deletions.
98 changes: 0 additions & 98 deletions pkgs/applications/emulators/bsnes/ares/default.nix

This file was deleted.

83 changes: 0 additions & 83 deletions pkgs/applications/emulators/bsnes/bsnes-hd/default.nix

This file was deleted.

110 changes: 110 additions & 0 deletions pkgs/by-name/ar/ares/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
lib,
SDL2,
alsa-lib,
apple-sdk_11,
autoPatchelfHook,
fetchFromGitHub,
gtk3,
gtksourceview3,
libGL,
libGLU,
libX11,
libXv,
libao,
libicns,
libpulseaudio,
openal,
pkg-config,
stdenv,
udev,
vulkan-loader,
which,
wrapGAppsHook3,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "ares";
version = "136";

src = fetchFromGitHub {
owner = "ares-emulator";
repo = "ares";
rev = "v${finalAttrs.version}";
hash = "sha256-Hks/MWusPiBVdb5L+53qtR6VmXG/P4rDzsvHxLeA8Do=";
};

patches = [
./patches/001-dont-rebuild-on-install.patch
./patches/002-fix-ruby.diff
./patches/003-darwin-specific.patch
];

nativeBuildInputs =
[
autoPatchelfHook
pkg-config
which
wrapGAppsHook3
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libicns
];

buildInputs =
[
SDL2
libao
]
++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
gtk3
gtksourceview3
libGL
libGLU
libX11
libXv
libpulseaudio
openal
udev
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11
];

appendRunpaths = [ (lib.makeLibraryPath [ vulkan-loader ]) ];

makeFlags =
lib.optionals stdenv.hostPlatform.isLinux [
"hiro=gtk3"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"hiro=cocoa"
"lto=false"
"vulkan=false"
]
++ [
"local=false"
"openmp=true"
"prefix=$(out)"
];

enableParallelBuilding = true;

env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-mmacosx-version-min=10.14";

meta = {
homepage = "https://ares-emu.net";
description = "Open-source multi-system emulator with a focus on accuracy and preservation";
license = lib.licenses.isc;
mainProgram = "ares";
maintainers = with lib.maintainers; [
Madouura
AndersonTorres
];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isDarwin;
};
})
# TODO: select between Qt and GTK3
# TODO: call Darwin hackers to deal with specific errors
Loading

0 comments on commit 2f3930f

Please sign in to comment.