From 83cbd45c1e36b25762217a1c891c72b9897da969 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Sun, 27 Dec 2020 17:49:17 +0800 Subject: [PATCH] neochat: clean up --- .../instant-messengers/neochat/default.nix | 59 +++++++++++++------ 1 file changed, 40 insertions(+), 19 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/neochat/default.nix b/pkgs/applications/networking/instant-messengers/neochat/default.nix index 141b887ef9b4..39a298b122d8 100644 --- a/pkgs/applications/networking/instant-messengers/neochat/default.nix +++ b/pkgs/applications/networking/instant-messengers/neochat/default.nix @@ -1,23 +1,28 @@ -{ mkDerivation, stdenv, fetchFromGitLab -, pkgconfig, wrapQtAppsHook +{ mkDerivation +, stdenv +, fetchFromGitLab +, pkg-config , cmake -, qtbase, qttools, qtquickcontrols2, qtmultimedia, qtkeychain +, qtbase +, qttools +, qtquickcontrols2 +, qtmultimedia +, qtkeychain , libpulseaudio -# Not mentioned but seems needed -, qtgraphicaleffects -, qtdeclarative -, qtmacextras -, olm, libsecret, cmark, extra-cmake-modules, kirigami2, ki18n, knotifications, kdbusaddons, kconfig, libquotient -, KQuickImageEdit, kitemmodels +, olm +, libsecret +, cmark +, extra-cmake-modules +, kirigami2 +, ki18n +, knotifications +, kdbusaddons +, kconfig +, libquotient +, kquickimageedit }: -let -qtkeychain-qt5 = qtkeychain.override { - inherit qtbase qttools; - withQt5 = true; -}; - -in mkDerivation rec { +mkDerivation rec { pname = "neochat"; version = "v1.0"; @@ -29,13 +34,29 @@ in mkDerivation rec { sha256 = "1r9n83kvc5v215lzmzh6hyc5q9i3w6znbf508qk0mdwdzxz4zry9"; }; - nativeBuildInputs = [ pkgconfig cmake extra-cmake-modules wrapQtAppsHook ]; - buildInputs = [ qtbase qtkeychain-qt5 qtquickcontrols2 qtmultimedia qtgraphicaleffects qtdeclarative olm libsecret cmark kirigami2 ki18n knotifications kdbusaddons kconfig libquotient KQuickImageEdit kitemmodels libpulseaudio ]; + nativeBuildInputs = [ cmake extra-cmake-modules pkg-config ]; + + buildInputs = [ + qtkeychain + qtquickcontrols2 + qtmultimedia + olm + libsecret + cmark + kirigami2 + ki18n + knotifications + kdbusaddons + kconfig + libquotient + kquickimageedit + libpulseaudio + ]; meta = with stdenv.lib; { description = "A client for matrix, the decentralized communication protocol."; homepage = "https://apps.kde.org/en/neochat"; - license = licenses.gpl3; + license = licenses.gpl3Only; platforms = with platforms; linux; }; }