git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit055759d27a34a0b5654c7cc1380f60023eb2f91e authorYegor Timoshenko <yegortimoshenko@gmail.com> dateSat 30 Sep 2017, 11:59 (9 years ago) parent37464fd
4 files changed+30−21
pkgs/misc/emulators/yabause/default.nix+17−19 pkgs/misc/emulators/yabause/emu-compatibility.com.patch+10 pkgs/misc/emulators/yabause/linkage-rwx-linux-elf.diff → pkgs/misc/emulators/yabause/linkage-rwx-linux-elf.patch pkgs/top-level/all-packages.nix+3−2
pkgs/misc/emulators/yabause/default.nix+17−19
@@ -1,35 +1,33 @@
1−{ stdenv, fetchurl, config
2−, cmake, pkgconfig
3−, doxygen
4−, qt
5−, libXmu, mesa, openal, SDL2, freeglut
6−}:
1+{ stdenv, fetchurl, cmake, pkgconfig, qtbase, mesa
2+, freeglut ? null, openal ? null, SDL2 ? null }:
73
84stdenv.mkDerivation rec {
9− name = "yabause-${meta.version}";
5+ name = "yabause-${version}";
6+ # 0.9.15 only works with OpenGL 3.2 or later:
7+ # https://github.com/Yabause/yabause/issues/349
8+ version = "0.9.14";
109
1110 src = fetchurl {
12− url = "http://download.tuxfamily.org/yabause/releases/${meta.version}/${name}.tar.gz";
11+ url = "https://download.tuxfamily.org/yabause/releases/${version}/${name}.tar.gz";
1312 sha256 = "0nkpvnr599g0i2mf19sjvw5m0rrvixdgz2snav4qwvzgfc435rkm";
1413 };
1514
16− patches = [ ./linkage-rwx-linux-elf.diff ];
15+ nativeBuildInputs = [ cmake pkgconfig ];
16+ buildInputs = [ qtbase mesa freeglut openal SDL2 ];
1717
18− buildInputs =
19− [ cmake pkgconfig doxygen qt libXmu mesa openal SDL2 freeglut ];
18+ patches = [ ./emu-compatibility.com.patch ./linkage-rwx-linux-elf.patch ];
2019
21− cmakeConfigureFlags = [
22− "-DYAB_PORTS='qt'"
23− "-DYAB_OPTIMIZED_DMA='ON'"
24− "-DYAB_NETWORK='ON'" ] ;
20+ cmakeFlags = [
21+ "-DYAB_NETWORK=ON"
22+ "-DYAB_OPTIMIZED_DMA=ON"
23+ "-DYAB_PORTS=qt"
24+ ] ;
2525
2626 meta = with stdenv.lib; {
27− version = "0.9.14";
2827 description = "An open-source Sega Saturn emulator";
29− homepage = http://yabause.org/;
28+ homepage = https://yabause.org/;
3029 license = licenses.gpl2Plus;
31− maintainers = [ maintainers.AndersonTorres ];
30+ maintainers = with maintaines; [ AndersonTorres ];
3231 platforms = platforms.linux;
3332 };
3433}
35−# TODO: Qt5
pkgs/misc/emulators/yabause/emu-compatibility.com.patchnew file+10
@@ -0,0 +1,10 @@
1+--- a/src/qt/ui/UIYabause.ui 2017-09-28 13:23:04.636014753 +0000
2++++ b/src/qt/ui/UIYabause.ui 2017-09-28 13:23:21.945763537 +0000
3+@@ -230,7 +230,6 @@
4+ <property name="title">
5+ <string>&amp;Help</string>
6+ </property>
7+- <addaction name="aHelpEmuCompatibility"/>
8+ <addaction name="aHelpAbout"/>
9+ </widget>
10+ <widget class="QMenu" name="mTools">
pkgs/misc/emulators/yabause/linkage-rwx-linux-elf.diff → pkgs/misc/emulators/yabause/linkage-rwx-linux-elf.patchrenamed

The content is the same.

pkgs/top-level/all-packages.nix+3−2
@@ -19446,8 +19446,9 @@ with pkgs;
1944619446
1944719447 xzoom = callPackage ../tools/X11/xzoom {};
1944819448
19449− yabause = callPackage ../misc/emulators/yabause {
19450− qt = qt4;
19449+ yabause = libsForQt5.callPackage ../misc/emulators/yabause {
19450+ freeglut = null;
19451+ openal = null;
1945119452 };
1945219453
1945319454 yadm = callPackage ../applications/version-management/yadm { };