zoom-us: use wrapQtAppsHook
This commit is contained in:
parent
239fffc90d
commit
aefe854bd3
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchurl, makeWrapper, makeDesktopItem, autoPatchelfHook, env
|
{ stdenv, fetchurl, mkDerivation, makeWrapper, makeDesktopItem, autoPatchelfHook
|
||||||
|
, wrapQtAppsHook
|
||||||
# Dynamic libraries
|
# Dynamic libraries
|
||||||
, dbus, glib, libGL, libX11, libXfixes, libuuid, libxcb, qtbase, qtdeclarative
|
, dbus, glib, libGL, libX11, libXfixes, libuuid, libxcb, qtbase, qtdeclarative
|
||||||
, qtimageformats, qtlocation, qtquickcontrols, qtquickcontrols2, qtscript, qtsvg
|
, qtimageformats, qtlocation, qtquickcontrols, qtquickcontrols2, qtscript, qtsvg
|
||||||
@ -21,23 +22,18 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
qtDeps = [
|
in mkDerivation {
|
||||||
qtbase qtdeclarative qtlocation qtquickcontrols qtquickcontrols2 qtscript
|
|
||||||
qtwebchannel qtwebengine qtimageformats qtsvg qttools qtwayland
|
|
||||||
];
|
|
||||||
|
|
||||||
qtEnv = env "zoom-us-qt-${qtbase.version}" qtDeps;
|
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
|
||||||
name = "zoom-us-${version}";
|
name = "zoom-us-${version}";
|
||||||
|
|
||||||
src = srcs.${stdenv.hostPlatform.system};
|
src = srcs.${stdenv.hostPlatform.system};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
|
nativeBuildInputs = [ autoPatchelfHook makeWrapper wrapQtAppsHook ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
dbus glib libGL libX11 libXfixes libuuid libxcb qtEnv libjpeg_turbo
|
dbus glib libGL libX11 libXfixes libuuid libxcb libjpeg_turbo
|
||||||
] ++ qtDeps;
|
qtbase qtdeclarative qtlocation qtquickcontrols qtquickcontrols2 qtscript
|
||||||
|
qtwebchannel qtwebengine qtimageformats qtsvg qttools qtwayland
|
||||||
|
];
|
||||||
|
|
||||||
runtimeDependencies = optional pulseaudioSupport libpulseaudio;
|
runtimeDependencies = optional pulseaudioSupport libpulseaudio;
|
||||||
|
|
||||||
@ -60,20 +56,12 @@ in stdenv.mkDerivation {
|
|||||||
in ''
|
in ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
packagePath=$out/share/zoom-us
|
mkdir -p $out/{bin,share/zoom-us}
|
||||||
mkdir -p $packagePath $out/bin
|
|
||||||
|
|
||||||
cp -ar ${files} $packagePath
|
cp -ar ${files} $out/share/zoom-us
|
||||||
|
|
||||||
# TODO Patch this somehow; tries to dlopen './libturbojpeg.so' from cwd
|
# TODO Patch this somehow; tries to dlopen './libturbojpeg.so' from cwd
|
||||||
ln -s $(readlink -e "${libjpeg_turbo.out}/lib/libturbojpeg.so") $packagePath/libturbojpeg.so
|
ln -s $(readlink -e "${libjpeg_turbo.out}/lib/libturbojpeg.so") $out/share/zoom-us/libturbojpeg.so
|
||||||
|
|
||||||
ln -s ${qtEnv}/bin/qt.conf $packagePath
|
|
||||||
|
|
||||||
makeWrapper $packagePath/zoom $out/bin/zoom-us \
|
|
||||||
--prefix PATH : "${makeBinPath [ coreutils glib.dev pciutils procps qttools.dev utillinux ]}" \
|
|
||||||
--prefix LD_PRELOAD : "${libv4l}/lib/libv4l/v4l2convert.so" \
|
|
||||||
--run "cd $packagePath"
|
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
@ -86,7 +74,14 @@ in stdenv.mkDerivation {
|
|||||||
genericName = "Video Conference";
|
genericName = "Video Conference";
|
||||||
categories = "Network;Application;";
|
categories = "Network;Application;";
|
||||||
mimeType = "x-scheme-handler/zoommtg;";
|
mimeType = "x-scheme-handler/zoommtg;";
|
||||||
}).buildCommand;
|
}).buildCommand + ''
|
||||||
|
ln -s $out/share/zoom-us/zoom $out/bin/zoom-us
|
||||||
|
'';
|
||||||
|
|
||||||
|
qtWrapperArgs = [
|
||||||
|
''--prefix PATH : ${makeBinPath [ coreutils glib.dev pciutils procps qttools.dev utillinux ]}''
|
||||||
|
''--prefix LD_PRELOAD : ${libv4l}/lib/libv4l/v4l2convert.so''
|
||||||
|
];
|
||||||
|
|
||||||
passthru.updateScript = ./update.sh;
|
passthru.updateScript = ./update.sh;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user