git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #43426 from tadfisher/zoom-us

zoom-us: fix runtime qt environment

commitbc48770871d253d59a0718cfbfd2b49bead6fb77 authorJoachim F <joachifm@users.noreply.github.com> dateSat 14 Jul 2018, 20:31 (8 years ago) parent17275135dc1d74
1 file changed+18−13
pkgs/applications/networking/instant-messengers/zoom-us/default.nix+18−13
pkgs/applications/networking/instant-messengers/zoom-us/default.nix+18−13
@@ -1,16 +1,18 @@
1−{ stdenv, fetchurl, system, makeWrapper, makeDesktopItem, autoPatchelfHook
1+{ stdenv, fetchurl, system, makeWrapper, makeDesktopItem, autoPatchelfHook, env
22# Dynamic libraries
33, dbus, glib, libGL, libX11, libXfixes, libuuid, libxcb, qtbase, qtdeclarative
4−, qtlocation, qtquickcontrols2, qtscript, qtwebchannel, qtwebengine
4+, qtimageformats, qtlocation, qtquickcontrols, qtquickcontrols2, qtscript, qtsvg
5+, qttools, qtwayland, qtwebchannel, qtwebengine
56# Runtime
6−, libjpeg_turbo, pciutils, procps, qtimageformats
7+, coreutils, libjpeg_turbo, pciutils, procps, utillinux
78, pulseaudioSupport ? true, libpulseaudio ? null
89}:
910
1011assert pulseaudioSupport -> libpulseaudio != null;
1112
1213let
13− inherit (stdenv.lib) concatStringsSep makeBinPath optional optionalString;
14+ inherit (stdenv.lib) concatStringsSep makeBinPath makeLibraryPath
15+ makeSearchPath optional optionalString;
1416
1517 version = "2.2.128200.0702";
1618 srcs = {
@@ -20,6 +22,13 @@ let
2022 };
2123 };
2224
25+ qtDeps = [
26+ qtbase qtdeclarative qtlocation qtquickcontrols qtquickcontrols2 qtscript
27+ qtwebchannel qtwebengine qtimageformats qtsvg qttools qtwayland
28+ ];
29+
30+ qtEnv = env "zoom-us-qt-${qtbase.version}" qtDeps;
31+
2332in stdenv.mkDerivation {
2433 name = "zoom-us-${version}";
2534
@@ -28,10 +37,8 @@ in stdenv.mkDerivation {
2837 nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
2938
3039 buildInputs = [
31− dbus glib libGL libX11 libXfixes libuuid libxcb qtbase qtdeclarative
32− qtlocation qtquickcontrols2 qtscript qtwebchannel qtwebengine
33− libjpeg_turbo
34− ];
40+ dbus glib libGL libX11 libXfixes libuuid libxcb qtEnv libjpeg_turbo
41+ ] ++ qtDeps;
3542
3643 runtimeDependencies = optional pulseaudioSupport libpulseaudio;
3744
@@ -46,7 +53,6 @@ in stdenv.mkDerivation {
4653 "ZXMPPROOT.cer"
4754 "ZoomLauncher"
4855 "config-dump.sh"
49− "qtdiag"
5056 "timezones"
5157 "translations"
5258 "version.txt"
@@ -67,11 +73,10 @@ in stdenv.mkDerivation {
6773 # TODO Patch this somehow; tries to dlopen './libturbojpeg.so' from cwd
6874 ln -s $(readlink -e "${libjpeg_turbo.out}/lib/libturbojpeg.so") $packagePath/libturbojpeg.so
6975
76+ ln -s ${qtEnv}/bin/qt.conf $packagePath
77+
7078 makeWrapper $packagePath/zoom $out/bin/zoom-us \
71− --prefix PATH : "${makeBinPath [ pciutils procps ]}" \
72− --set QSG_INFO 1 \
73− --set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase.bin}/lib/qt-${qtbase.qtCompatVersion}/plugins/platforms \
74− --set QT_PLUGIN_PATH ${qtbase.bin}/${qtbase.qtPluginPrefix}:${qtimageformats}/${qtbase.qtPluginPrefix} \
79+ --prefix PATH : "${makeBinPath [ coreutils glib.dev pciutils procps qttools.dev utillinux ]}" \
7580 --run "cd $packagePath"
7681
7782 runHook postInstall