2018-02-24 13:12:44 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, qtbase, libGLU_combined
|
2017-09-30 12:59:35 +01:00
|
|
|
, freeglut ? null, openal ? null, SDL2 ? null }:
|
2015-11-29 02:33:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-30 12:59:35 +01:00
|
|
|
name = "yabause-${version}";
|
|
|
|
# 0.9.15 only works with OpenGL 3.2 or later:
|
|
|
|
# https://github.com/Yabause/yabause/issues/349
|
|
|
|
version = "0.9.14";
|
2015-11-29 02:33:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-09-30 12:59:35 +01:00
|
|
|
url = "https://download.tuxfamily.org/yabause/releases/${version}/${name}.tar.gz";
|
2015-11-29 02:33:37 +00:00
|
|
|
sha256 = "0nkpvnr599g0i2mf19sjvw5m0rrvixdgz2snav4qwvzgfc435rkm";
|
|
|
|
};
|
|
|
|
|
2017-09-30 12:59:35 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2018-02-24 13:12:44 +00:00
|
|
|
buildInputs = [ qtbase libGLU_combined freeglut openal SDL2 ];
|
2015-11-29 02:33:37 +00:00
|
|
|
|
2017-09-30 12:59:35 +01:00
|
|
|
patches = [ ./emu-compatibility.com.patch ./linkage-rwx-linux-elf.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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An open-source Sega Saturn emulator";
|
2017-09-30 12:59:35 +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;
|
|
|
|
};
|
|
|
|
}
|