My personal project and infrastructure archive
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.
 
 
 
 
 
 
nomicon/pkgs/applications/emulators/bsnes/ares/default.nix

73 lines
1.1 KiB

{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, SDL2
, alsa-lib
, gtk3
, gtksourceview3
, libGL
, libGLU
, libX11
, libXv
, libao
, libpulseaudio
, openal
, udev
}:
stdenv.mkDerivation rec {
pname = "ares";
version = "127";
src = fetchFromGitHub {
owner = "ares-emulator";
repo = "ares";
rev = "v${version}";
sha256 = "0rhq39w41j9yr1fkyfmf4n6fjxnq1cglj98rp4wys12kwqv7smvx";
};
patches = [
./dont-rebuild-on-install.patch
./fix-ruby.patch
];
nativeBuildInputs = [
pkg-config
];
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