2021-02-05 17:12:51 +00:00
|
|
|
{ mkDerivation, lib, fetchurl, cmake, pkg-config, qtbase, qt5, libGLU, libGL
|
2024-07-27 06:49:29 +00:00
|
|
|
, libglut ? null, openal ? null, SDL2 ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "yabause";
|
|
|
|
version = "0.9.15";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.tuxfamily.org/yabause/releases/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1cn2rjjb7d9pkr4g5bqz55vd4pzyb7hg94cfmixjkzzkw0zw8d23";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2024-07-27 06:49:29 +00:00
|
|
|
buildInputs = [ qtbase qt5.qtmultimedia libGLU libGL libglut openal SDL2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./linkage-rwx-linux-elf.patch
|
|
|
|
# Fixes derived from
|
|
|
|
# https://github.com/Yabause/yabause/commit/06a816c032c6f7fd79ced6e594dd4b33571a0e73
|
|
|
|
./0001-Fixes-for-Qt-5.11-upgrade.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DYAB_NETWORK=ON"
|
|
|
|
"-DYAB_OPTIMIZED_DMA=ON"
|
|
|
|
"-DYAB_PORTS=qt"
|
|
|
|
] ;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open-source Sega Saturn emulator";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "yabause";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://yabause.org/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|