Skip to content

Commit

Permalink
Merge branch 'zoom-us-fix' of git://github.com/danbst/nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Jun 15, 2017
2 parents 19f8213 + 6d6d2fd commit 9101fe8
Showing 1 changed file with 14 additions and 3 deletions.
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, system, makeWrapper,
alsaLib, dbus, glib, gstreamer, fontconfig, freetype, libpulseaudio, libxml2,
libxslt, mesa, nspr, nss, sqlite, utillinux, zlib, xorg }:
libxslt, mesa, nspr, nss, sqlite, utillinux, zlib, xorg, udev, expat, libv4l }:

let

Expand Down Expand Up @@ -35,6 +35,8 @@ in stdenv.mkDerivation {
sqlite
utillinux
zlib
udev
expat

xorg.libX11
xorg.libSM
Expand All @@ -51,6 +53,7 @@ in stdenv.mkDerivation {
xorg.libXi
xorg.libXrender
xorg.libXcomposite
xorg.libXScrnSaver

stdenv.cc.cc
];
Expand All @@ -63,8 +66,10 @@ in stdenv.mkDerivation {
mkdir -p $out/bin
cp -ar * $packagePath
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
$packagePath/zoom
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $packagePath/zoom
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $packagePath/QtWebEngineProcess
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $packagePath/qtdiag
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $packagePath/zopen
# included from https://github.com/NixOS/nixpkgs/commit/fc218766333a05c9352b386e0cbb16e1ae84bf53
# it works for me without it, but, well...
paxmark m $packagePath/zoom
Expand All @@ -73,11 +78,17 @@ in stdenv.mkDerivation {
# RUNPATH set via patchelf is used only for half of libraries (why?), so wrap it
wrapProgram $packagePath/zoom \
--prefix LD_LIBRARY_PATH : "$packagePath:$libPath" \
--prefix LD_PRELOAD : "${libv4l}/lib/v4l1compat.so" \
--set QT_PLUGIN_PATH "$packagePath/platforms" \
--set QT_XKB_CONFIG_ROOT "${xorg.xkeyboardconfig}/share/X11/xkb" \
--set QTCOMPOSE "${xorg.libX11.out}/share/X11/locale"
ln -s "$packagePath/zoom" "$out/bin/zoom-us"
cat > $packagePath/qt.conf <<EOF
[Paths]
Prefix = $packagePath
EOF
$postInstallHooks
'';

Expand Down

0 comments on commit 9101fe8

Please sign in to comment.