mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #157412 from LeSuisse/quassel-0.14.0
quassel: 0.13.1 -> 0.14.0
This commit is contained in:
commit
bb3bd16315
@ -1,37 +0,0 @@
|
|||||||
From ac9387271b2420a71f7d172f44354fc35adac504 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Manuel Nickschas <sputnick@quassel-irc.org>
|
|
||||||
Date: Tue, 7 Jan 2020 18:34:54 +0100
|
|
||||||
Subject: [PATCH] common: Disable enum type stream operators for Qt >= 5.14
|
|
||||||
|
|
||||||
Starting from version 5.14, Qt provides stream operators for enum
|
|
||||||
types, which collide with the ones we ship in types.h. Disable
|
|
||||||
Quassel's stream operators when compiling against Qt 5.14 or later.
|
|
||||||
|
|
||||||
(cherry-picked from 579e559a6322209df7cd51c34801fecff5fe734b)
|
|
||||||
---
|
|
||||||
src/common/types.h | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/common/types.h b/src/common/types.h
|
|
||||||
index 467d9fb2..c4b9f364 100644
|
|
||||||
--- a/src/common/types.h
|
|
||||||
+++ b/src/common/types.h
|
|
||||||
@@ -140,6 +140,7 @@ Q_DECLARE_METATYPE(QHostAddress)
|
|
||||||
typedef QList<MsgId> MsgIdList;
|
|
||||||
typedef QList<BufferId> BufferIdList;
|
|
||||||
|
|
||||||
+#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
|
||||||
/**
|
|
||||||
* Catch-all stream serialization operator for enum types.
|
|
||||||
*
|
|
||||||
@@ -169,6 +170,7 @@ QDataStream &operator>>(QDataStream &in, T &value) {
|
|
||||||
value = static_cast<T>(v);
|
|
||||||
return in;
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
// Exceptions
|
|
||||||
|
|
||||||
--
|
|
||||||
2.26.2
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
, static ? false # link statically
|
, static ? false # link statically
|
||||||
|
|
||||||
, lib, stdenv, fetchFromGitHub, cmake, makeWrapper, dconf
|
, lib, stdenv, fetchFromGitHub, cmake, makeWrapper, dconf
|
||||||
, mkDerivation, qtbase, qtscript
|
, mkDerivation, qtbase, boost, zlib, qtscript
|
||||||
, phonon, libdbusmenu, qca-qt5
|
, phonon, libdbusmenu, qca-qt5
|
||||||
|
|
||||||
, withKDE ? true # enable KDE integration
|
, withKDE ? true # enable KDE integration
|
||||||
@ -33,27 +33,21 @@ let
|
|||||||
|
|
||||||
in (if !buildClient then stdenv.mkDerivation else mkDerivation) rec {
|
in (if !buildClient then stdenv.mkDerivation else mkDerivation) rec {
|
||||||
pname = "quassel${tag}";
|
pname = "quassel${tag}";
|
||||||
version = "0.13.1";
|
version = "0.14.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "quassel";
|
owner = "quassel";
|
||||||
repo = "quassel";
|
repo = "quassel";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0z8p7iv90yrrjbh31cyxhpr6hsynfmi23rlayn7p2f6ki5az7yc3";
|
sha256 = "sha256-eulhNcyCmy9ryietOhT2yVJeJH+MMZRbTUo2XuTy9qU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
# fixes build with Qt 5.14
|
|
||||||
# source: https://github.com/quassel/quassel/pull/518/commits/8a46d983fc99204711cdff1e4c542e272fef45b9
|
|
||||||
./0001-common-Disable-enum-type-stream-operators-for-Qt-5.1.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
# Prevent ``undefined reference to `qt_version_tag''' in SSL check
|
# Prevent ``undefined reference to `qt_version_tag''' in SSL check
|
||||||
NIX_CFLAGS_COMPILE = "-DQT_NO_VERSION_TAGGING=1";
|
NIX_CFLAGS_COMPILE = "-DQT_NO_VERSION_TAGGING=1";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake makeWrapper ];
|
nativeBuildInputs = [ cmake makeWrapper ];
|
||||||
buildInputs = [ qtbase ]
|
buildInputs = [ qtbase boost zlib ]
|
||||||
++ lib.optionals buildCore [qtscript qca-qt5]
|
++ lib.optionals buildCore [qtscript qca-qt5 ]
|
||||||
++ lib.optionals buildClient [libdbusmenu phonon]
|
++ lib.optionals buildClient [libdbusmenu phonon]
|
||||||
++ lib.optionals (buildClient && withKDE) [
|
++ lib.optionals (buildClient && withKDE) [
|
||||||
extra-cmake-modules kconfigwidgets kcoreaddons
|
extra-cmake-modules kconfigwidgets kcoreaddons
|
||||||
|
Loading…
Reference in New Issue
Block a user