From 533540bb99761c5339eb38e88cc233dd6a980e36 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Thu, 26 May 2022 03:43:43 +0200 Subject: [PATCH] vacuum: 1.3.0.20160104 -> unstable-2021-12-09 qt4 -> qt5 (cherry picked from commit 2c2ebf360333dedcdc1400c5f024425cf7fc5947) Signed-off-by: Matthias Beyer --- .../instant-messengers/vacuum/default.nix | 52 +++++++++++-------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/vacuum/default.nix b/pkgs/applications/networking/instant-messengers/vacuum/default.nix index 0fc7e8b6d8ee..f735907e46b8 100644 --- a/pkgs/applications/networking/instant-messengers/vacuum/default.nix +++ b/pkgs/applications/networking/instant-messengers/vacuum/default.nix @@ -1,35 +1,43 @@ -{ lib, stdenv, fetchFromGitHub - , qt4, qmake4Hook, openssl - , xorgproto, libX11, libXScrnSaver - , xz, zlib +{ stdenv, lib, fetchFromGitHub +, qtbase +, qttools +, qtx11extras +, qtmultimedia +, qtwebkit +, wrapQtAppsHook +, cmake +, openssl +, xorgproto, libX11, libXScrnSaver +, xz, zlib }: stdenv.mkDerivation { pname = "vacuum-im"; - version = "1.3.0.20160104"; + version = "unstable-2021-12-09"; src = fetchFromGitHub { owner = "Vacuum-IM"; repo = "vacuum-im"; - rev = "1.3.0.20160104-Alpha"; - sha256 = "1jcw9c7s75y4c3m4skfc3cc0i519z39b23n997vj5mwcjplxyc76"; + rev = "0abd5e11dd3e2538b8c47f5a06febedf73ae99ee"; + sha256 = "0l9pln07zz874m1r6wnpc9vcdbpgvjdsy49cjjilc6s4p4b2c812"; }; - buildInputs = [ - qt4 openssl xorgproto libX11 libXScrnSaver xz zlib + nativeBuildInputs = [ + wrapQtAppsHook + cmake + ]; + buildInputs = [ + qtbase + qttools + qtx11extras + qtmultimedia + qtwebkit + openssl + xorgproto + libX11 + libXScrnSaver + xz + zlib ]; - - # hack: needed to fix build issues in - # https://hydra.nixos.org/build/38322959/nixlog/1 - # should be an upstream issue but it's easy to fix - NIX_LDFLAGS = "-lz"; - - nativeBuildInputs = [ qmake4Hook ]; - - preConfigure = '' - qmakeFlags="$qmakeFlags INSTALL_PREFIX=$out" - ''; - - hardeningDisable = [ "format" ]; meta = with lib; { description = "An XMPP client fully composed of plugins"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 768bf1dc0f00..c5ea7529b07b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14072,7 +14072,7 @@ with pkgs; v2ray-geoip = callPackage ../data/misc/v2ray-geoip { }; - vacuum = callPackage ../applications/networking/instant-messengers/vacuum { }; + vacuum = libsForQt5.callPackage ../applications/networking/instant-messengers/vacuum {}; validator-nu = callPackage ../tools/text/validator-nu { };