1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/misc/emulators/yabause/default.nix

37 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, pkgconfig, qtbase, qt5, libGLU_combined
, freeglut ? null, openal ? null, SDL2 ? null }:
2015-11-29 02:33:37 +00:00
stdenv.mkDerivation rec {
name = "yabause-${version}";
version = "0.9.15";
2015-11-29 02:33:37 +00:00
src = fetchurl {
url = "https://download.tuxfamily.org/yabause/releases/${version}/${name}.tar.gz";
sha256 = "1cn2rjjb7d9pkr4g5bqz55vd4pzyb7hg94cfmixjkzzkw0zw8d23";
2015-11-29 02:33:37 +00:00
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ qtbase qt5.qtmultimedia libGLU_combined freeglut openal SDL2 ];
2015-11-29 02:33:37 +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
];
2015-11-29 02:33:37 +00: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";
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;
};
}