You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.2 KiB
75 lines
1.2 KiB
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, wrapGAppsHook
|
|
, SDL2
|
|
, alsa-lib
|
|
, gtk3
|
|
, gtksourceview3
|
|
, libGL
|
|
, libGLU
|
|
, libX11
|
|
, libXv
|
|
, libao
|
|
, libpulseaudio
|
|
, openal
|
|
, udev
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ares";
|
|
version = "128";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ares-emulator";
|
|
repo = "ares";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Ojf1kyColBK0S3DwXjGaAZSl0ljhgiXkfKC11BL2fEc=";
|
|
};
|
|
|
|
patches = [
|
|
./dont-rebuild-on-install.patch
|
|
./fix-ruby.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
SDL2
|
|
alsa-lib
|
|
gtk3
|
|
gtksourceview3
|
|
libGL
|
|
libGLU
|
|
libX11
|
|
libXv
|
|
libao
|
|
libpulseaudio
|
|
openal
|
|
udev
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
makeFlags = [
|
|
"-C desktop-ui"
|
|
"local=false"
|
|
"openmp=true"
|
|
"hiro=gtk3"
|
|
"prefix=$(out)"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://ares.dev";
|
|
description = "Open-source multi-system emulator with a focus on accuracy and preservation";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ Madouura ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|
|
# TODO: select between Qt, GTK2 and GTK3
|
|
# TODO: support Darwin
|
|
|