mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
79 lines
1.3 KiB
Nix
79 lines
1.3 KiB
Nix
{ version
|
|
, src
|
|
, jami-meta
|
|
, lib
|
|
, stdenv
|
|
, pkg-config
|
|
, cmake
|
|
, networkmanager # for libnm
|
|
, python3
|
|
, qttools # for translations
|
|
, wrapQtAppsHook
|
|
, ffmpeg-jami
|
|
, jami-daemon
|
|
, libnotify
|
|
, qt5compat
|
|
, qtbase
|
|
, qtdeclarative
|
|
, qrencode
|
|
, qtmultimedia
|
|
, qtnetworkauth
|
|
, qtsvg
|
|
, qtwebengine
|
|
, qtwebchannel
|
|
, withWebengine ? false
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "jami-client-qt";
|
|
inherit version src;
|
|
|
|
sourceRoot = "source/client-qt";
|
|
|
|
preConfigure = ''
|
|
python gen-resources.py
|
|
echo 'const char VERSION_STRING[] = "${version}";' > src/version.h
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
wrapQtAppsHook
|
|
pkg-config
|
|
cmake
|
|
python3
|
|
qttools
|
|
];
|
|
|
|
buildInputs = [
|
|
ffmpeg-jami
|
|
jami-daemon
|
|
libnotify
|
|
networkmanager
|
|
qtbase
|
|
qt5compat
|
|
qrencode
|
|
qtnetworkauth
|
|
qtdeclarative
|
|
qtmultimedia
|
|
qtsvg
|
|
qtwebchannel
|
|
] ++ lib.optionals withWebengine [
|
|
qtwebengine
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DRING_BUILD_DIR=${jami-daemon}/include"
|
|
"-DRING_XML_INTERFACES_DIR=${jami-daemon}/share/dbus-1/interfaces"
|
|
] ++ lib.optionals (!withWebengine) [
|
|
"-DWITH_WEBENGINE=false"
|
|
];
|
|
|
|
qtWrapperArgs = [
|
|
# With wayland the titlebar is not themed and the wmclass is wrong.
|
|
"--set-default QT_QPA_PLATFORM xcb"
|
|
];
|
|
|
|
meta = jami-meta // {
|
|
description = "The client based on QT" + jami-meta.description;
|
|
};
|
|
}
|