nixpkgs/pkgs/misc/emulators/yabause/default.nix
Yegor Timoshenko 055759d27a yabause: Qt4 -> Qt5, disable emu-compatibility.com in About menu
emu-compatibility.com is now defunct and thus should not be in About menu.

Other minor changes:
* linkage-rwx-linux-elf.diff -> linkage-rwx-linux-elf.patch
* Mark some inputs as optional
* Do not build with Doxygen by default: it does not produce any outputs
* Do not build with OpenAL by default: SDL2 handles sound when present
* Do not build with FreeGLUT by default: deprecated at upstream
2017-09-30 23:50:16 +00:00

33 lines
983 B
Nix

{ stdenv, fetchurl, cmake, pkgconfig, qtbase, mesa
, freeglut ? null, openal ? null, SDL2 ? null }:
stdenv.mkDerivation rec {
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";
src = fetchurl {
url = "https://download.tuxfamily.org/yabause/releases/${version}/${name}.tar.gz";
sha256 = "0nkpvnr599g0i2mf19sjvw5m0rrvixdgz2snav4qwvzgfc435rkm";
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ qtbase mesa freeglut openal SDL2 ];
patches = [ ./emu-compatibility.com.patch ./linkage-rwx-linux-elf.patch ];
cmakeFlags = [
"-DYAB_NETWORK=ON"
"-DYAB_OPTIMIZED_DMA=ON"
"-DYAB_PORTS=qt"
] ;
meta = with stdenv.lib; {
description = "An open-source Sega Saturn emulator";
homepage = https://yabause.org/;
license = licenses.gpl2Plus;
maintainers = with maintaines; [ AndersonTorres ];
platforms = platforms.linux;
};
}