2021-01-25 08:26:54 +00:00
|
|
|
{ mkDerivation, lib, fetchurl, cmake, pkg-config, qtbase, qt5, libGLU, libGL
|
2017-09-30 12:59:35 +01:00
|
|
|
, freeglut ? null, openal ? null, SDL2 ? null }:
|
2015-11-29 02:33:37 +00:00
|
|
|
|
2020-04-07 21:24:12 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "yabause";
|
2018-09-08 12:58:50 +01:00
|
|
|
version = "0.9.15";
|
2015-11-29 02:33:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://download.tuxfamily.org/yabause/releases/${version}/${pname}-${version}.tar.gz";
|
2018-09-08 12:58:50 +01:00
|
|
|
sha256 = "1cn2rjjb7d9pkr4g5bqz55vd4pzyb7hg94cfmixjkzzkw0zw8d23";
|
2015-11-29 02:33:37 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ qtbase qt5.qtmultimedia libGLU libGL freeglut openal SDL2 ];
|
2015-11-29 02:33:37 +00:00
|
|
|
|
2018-09-08 12:58:50 +01: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
|
|
|
|
];
|
2015-11-29 02:33:37 +00:00
|
|
|
|
2017-09-30 12:59:35 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DYAB_NETWORK=ON"
|
|
|
|
"-DYAB_OPTIMIZED_DMA=ON"
|
|
|
|
"-DYAB_PORTS=qt"
|
|
|
|
] ;
|
2015-11-29 02:33:37 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-11-29 02:33:37 +00:00
|
|
|
description = "An open-source Sega Saturn emulator";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://yabause.org/";
|
2015-11-29 02:33:37 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2017-10-08 10:16:44 +01:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2015-11-29 02:33:37 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|