git.iko.soy/typeable/nixpkgs
on master help sign in
yabause: 0.9.14 -> 0.9.15 (#46353)

+ fixes for Qt 5.11 build.

commit2c751dcdc9d38a8fd58ff6b241b048839de49511 authorSamuel Dionne-Riel <samuel@dionne-riel.com> dateSat 8 Sep 2018, 07:58 (8 years ago) parentcd20437
3 files changed+77−17
pkgs/misc/emulators/yabause/0001-Fixes-for-Qt-5.11-upgrade.patch+67 pkgs/misc/emulators/yabause/default.nix+10−7 pkgs/misc/emulators/yabause/emu-compatibility.com.patch−10
pkgs/misc/emulators/yabause/0001-Fixes-for-Qt-5.11-upgrade.patchnew file+67
@@ -0,0 +1,67 @@
1+From 3140afd6fb7dad7a25296526a71b005fb9eae048 Mon Sep 17 00:00:00 2001
2+From: Samuel Dionne-Riel <samuel@dionne-riel.com>
3+Date: Sat, 8 Sep 2018 00:44:08 -0400
4+Subject: [PATCH] Fixes for Qt 5.11 upgrade
5+
6+---
7+ src/qt/ui/UICheatRaw.cpp | 2 --
8+ src/qt/ui/UICheatRaw.h | 2 +-
9+ src/qt/ui/UICheats.cpp | 2 ++
10+ src/qt/ui/UIHexInput.h | 2 ++
11+ 4 files changed, 5 insertions(+), 3 deletions(-)
12+
13+diff --git a/src/qt/ui/UICheatRaw.cpp b/src/qt/ui/UICheatRaw.cpp
14+index 4ad82d77..3f78486b 100755
15+--- a/src/qt/ui/UICheatRaw.cpp
16++++ b/src/qt/ui/UICheatRaw.cpp
17+@@ -20,8 +20,6 @@
18+ #include "UIHexInput.h"
19+ #include "../QtYabause.h"
20+
21+-#include <QButtonGroup>
22+-
23+ UICheatRaw::UICheatRaw( QWidget* p )
24+ : QDialog( p )
25+ {
26+diff --git a/src/qt/ui/UICheatRaw.h b/src/qt/ui/UICheatRaw.h
27+index d97b429d..20318c67 100755
28+--- a/src/qt/ui/UICheatRaw.h
29++++ b/src/qt/ui/UICheatRaw.h
30+@@ -21,7 +21,7 @@
31+
32+ #include "ui_UICheatRaw.h"
33+
34+-class QButtonGroup;
35++#include <QButtonGroup>
36+
37+ class UICheatRaw : public QDialog, public Ui::UICheatRaw
38+ {
39+diff --git a/src/qt/ui/UICheats.cpp b/src/qt/ui/UICheats.cpp
40+index c6027972..44d341c3 100755
41+--- a/src/qt/ui/UICheats.cpp
42++++ b/src/qt/ui/UICheats.cpp
43+@@ -21,6 +21,8 @@
44+ #include "UICheatRaw.h"
45+ #include "../CommonDialogs.h"
46+
47++#include <QButtonGroup>
48++
49+ UICheats::UICheats( QWidget* p )
50+ : QDialog( p )
51+ {
52+diff --git a/src/qt/ui/UIHexInput.h b/src/qt/ui/UIHexInput.h
53+index f333b016..4bd8aed4 100644
54+--- a/src/qt/ui/UIHexInput.h
55++++ b/src/qt/ui/UIHexInput.h
56+@@ -22,6 +22,8 @@
57+ #include "ui_UIHexInput.h"
58+ #include "../QtYabause.h"
59+
60++#include <QValidator>
61++
62+ class HexValidator : public QValidator
63+ {
64+ Q_OBJECT
65+--
66+2.16.4
67+
pkgs/misc/emulators/yabause/default.nix+10−7
@@ -1,21 +1,24 @@
1−{ stdenv, fetchurl, cmake, pkgconfig, qtbase, libGLU_combined
1+{ stdenv, fetchurl, cmake, pkgconfig, qtbase, qt5, libGLU_combined
22, freeglut ? null, openal ? null, SDL2 ? null }:
33
44stdenv.mkDerivation rec {
55 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";
6+ version = "0.9.15";
97
108 src = fetchurl {
119 url = "https://download.tuxfamily.org/yabause/releases/${version}/${name}.tar.gz";
12− sha256 = "0nkpvnr599g0i2mf19sjvw5m0rrvixdgz2snav4qwvzgfc435rkm";
10+ sha256 = "1cn2rjjb7d9pkr4g5bqz55vd4pzyb7hg94cfmixjkzzkw0zw8d23";
1311 };
1412
1513 nativeBuildInputs = [ cmake pkgconfig ];
16− buildInputs = [ qtbase libGLU_combined freeglut openal SDL2 ];
14+ buildInputs = [ qtbase qt5.qtmultimedia libGLU_combined freeglut openal SDL2 ];
1715
18− patches = [ ./emu-compatibility.com.patch ./linkage-rwx-linux-elf.patch ];
16+ patches = [
17+ ./linkage-rwx-linux-elf.patch
18+ # Fixes derived from
19+ # https://github.com/Yabause/yabause/commit/06a816c032c6f7fd79ced6e594dd4b33571a0e73
20+ ./0001-Fixes-for-Qt-5.11-upgrade.patch
21+ ];
1922
2023 cmakeFlags = [
2124 "-DYAB_NETWORK=ON"
pkgs/misc/emulators/yabause/emu-compatibility.com.patchdeleted−10
@@ -1,10 +0,0 @@
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">