nixpkgs/pkgs/applications/networking/instant-messengers/psi-plus/default.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

2021-05-10 13:09:46 +00:00
{ lib, mkDerivation, fetchFromGitHub, cmake
, qtbase, qtmultimedia, qtx11extras, qttools, qtwebengine
2021-05-10 13:09:46 +00:00
, libidn, qca-qt5, libXScrnSaver, hunspell
, libsecret, libgcrypt, libotr, html-tidy, libgpgerror, libsignal-protocol-c
, usrsctp
# Voice messages
, voiceMessagesSupport ? true
, gst_all_1
2017-03-07 13:21:38 +00:00
}:
mkDerivation rec {
pname = "psi-plus";
2021-05-10 13:09:46 +00:00
version = "1.5.1520";
2017-03-07 13:21:38 +00:00
src = fetchFromGitHub {
owner = "psi-plus";
repo = "psi-plus-snapshots";
2019-09-08 23:38:31 +00:00
rev = version;
2021-05-10 13:09:46 +00:00
sha256 = "0cj811qv0n8xck2qrnps2ybzrpvyjqz7nxkyccpaivq6zxj6mc12";
2017-03-07 13:21:38 +00:00
};
2017-03-09 02:17:40 +00:00
cmakeFlags = [
"-DENABLE_PLUGINS=ON"
];
nativeBuildInputs = [ cmake qttools ];
2017-03-07 13:21:38 +00:00
2017-03-09 01:33:32 +00:00
buildInputs = [
qtbase qtmultimedia qtx11extras qtwebengine
2021-05-10 13:09:46 +00:00
libidn qca-qt5 libXScrnSaver hunspell
libsecret libgcrypt libotr html-tidy libgpgerror libsignal-protocol-c
usrsctp
] ++ lib.optionals voiceMessagesSupport [
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
2017-03-09 01:33:32 +00:00
];
2017-03-07 13:21:38 +00:00
preFixup = lib.optionalString voiceMessagesSupport ''
qtWrapperArgs+=(
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
)
'';
meta = with lib; {
2021-05-10 13:09:46 +00:00
homepage = "https://psi-plus.com";
2017-03-07 13:21:38 +00:00
description = "XMPP (Jabber) client";
maintainers = with maintainers; [ orivej misuzu ];
2021-05-10 14:07:42 +00:00
license = licenses.gpl2Only;
2017-03-07 13:21:38 +00:00
platforms = platforms.linux;
};
}