about summary refs log tree commit diff
path: root/pkgs/servers/misc
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2022-06-14 18:20:03 +0200
committerFrancesco Gazzetta <fgaz@fgaz.me>2022-07-24 09:29:10 +0200
commita102efba924d87452e507bb304be81fb0b7f8ee2 (patch)
tree15e6bce8b291254b96c936d6b313fe1475f692d4 /pkgs/servers/misc
parent969f5256830f1397a7894e36add77681240306c5 (diff)
qremotecontrol-server: 2.4.2 -> unstable-2014-11-05, use Qt5
Qt4 is going to be removed: #174634
Diffstat (limited to 'pkgs/servers/misc')
-rw-r--r--pkgs/servers/misc/qremotecontrol-server/0001-fix-qt5-build-include-QDataStream.patch26
-rw-r--r--pkgs/servers/misc/qremotecontrol-server/default.nix31
2 files changed, 46 insertions, 11 deletions
diff --git a/pkgs/servers/misc/qremotecontrol-server/0001-fix-qt5-build-include-QDataStream.patch b/pkgs/servers/misc/qremotecontrol-server/0001-fix-qt5-build-include-QDataStream.patch
new file mode 100644
index 0000000000000..0d6c9f15f3db5
--- /dev/null
+++ b/pkgs/servers/misc/qremotecontrol-server/0001-fix-qt5-build-include-QDataStream.patch
@@ -0,0 +1,26 @@
+From 922d3dd36ac72b29ea21c4c728a922b43b19400e Mon Sep 17 00:00:00 2001
+From: Francesco Gazzetta <fgaz@fgaz.me>
+Date: Tue, 14 Jun 2022 17:55:43 +0200
+Subject: [PATCH] Another Qt5 fix
+
+---
+ qtsingleapplication/qtlocalpeer.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/qtsingleapplication/qtlocalpeer.cpp b/qtsingleapplication/qtlocalpeer.cpp
+index 4a84036..e6ccc72 100644
+--- a/qtsingleapplication/qtlocalpeer.cpp
++++ b/qtsingleapplication/qtlocalpeer.cpp
+@@ -41,6 +41,9 @@
+ 
+ #include "qtlocalpeer.h"
+ #include <QCoreApplication>
++#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
++#include <QDataStream>
++#endif
+ #include <QTime>
+ 
+ #if defined(Q_OS_WIN)
+-- 
+2.36.0
+
diff --git a/pkgs/servers/misc/qremotecontrol-server/default.nix b/pkgs/servers/misc/qremotecontrol-server/default.nix
index 301b217c5fca6..748acdd4cfed4 100644
--- a/pkgs/servers/misc/qremotecontrol-server/default.nix
+++ b/pkgs/servers/misc/qremotecontrol-server/default.nix
@@ -1,24 +1,35 @@
 { lib
 , stdenv
 , fetchgit
-, qmake4Hook
-, qt4
+, qmake
+, wrapQtAppsHook
+, qtbase
 , xorg
 }:
 
 stdenv.mkDerivation rec {
   pname = "qremotecontrol-server";
-  version = "2.4.2";
+  version = "unstable-2014-11-05"; # basically 2.4.2 + qt5
 
-  # There is no 2.4.2 release tarball, but there is a git tag
   src = fetchgit {
     url = "https://git.code.sf.net/p/qrc/gitcode";
-    rev = version;
-    sha256 = "sha256-i3X575SbrWV8kWWHAhXvKl5aSKFZm0VyrJOiL7eYrCo=";
+    rev = "8f1c55eac10ac8af974c3c20157d90ef57f7308a";
+    sha256 = "sha256-AfFScec5/emG/f+yc5Zn37USIEWzGP/sBifE6Kx8d0E=";
   };
 
-  nativeBuildInputs = [ qmake4Hook ];
-  buildInputs = [ qt4 xorg.libXtst ];
+  patches = [
+    ./0001-fix-qt5-build-include-QDataStream.patch
+  ];
+
+  nativeBuildInputs = [
+    qmake
+    wrapQtAppsHook
+  ];
+
+  buildInputs = [
+    qtbase
+    xorg.libXtst
+  ];
 
   postPatch = ''
     substituteInPlace QRemoteControl-Server.pro \
@@ -29,8 +40,7 @@ stdenv.mkDerivation rec {
     license = licenses.gpl3;
     platforms = platforms.all;
     maintainers = with maintainers; [ fgaz ];
-    homepage = "https://qremote.org/";
-    downloadPage = "https://qremote.org/download.php#Download";
+    homepage = "https://sourceforge.net/projects/qrc/";
     description = "Remote control your desktop from your mobile";
     longDescription = ''
       With QRemoteControl installed on your desktop you can easily control
@@ -46,4 +56,3 @@ stdenv.mkDerivation rec {
     '';
   };
 }
-