Skip to content

Instantly share code, notes, and snippets.

@edofic
Last active April 3, 2016 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edofic/dd98c682077475ad4e7ac305a12030fc to your computer and use it in GitHub Desktop.
Save edofic/dd98c682077475ad4e7ac305a12030fc to your computer and use it in GitHub Desktop.
Zoom.us client nix expression
{ stdenv, fetchurl
# Linked dynamic libraries
, glib, gstreamer, libuuid, mesa, pulseaudioFull, qt55, sqlite, xorg
}:
stdenv.mkDerivation {
name = "zoom";
version = "1.1.44485.0317";
src = fetchurl {
url = http://zoom.us/client/latest/zoom_1.1.44485.0317_x86_64.tar.xz;
md5 = "a984011e6bc5923fd822ef08b397b2a5";
};
libPath = stdenv.lib.makeLibraryPath [
glib
gstreamer
libuuid
mesa
pulseaudioFull
qt55.full
sqlite
stdenv.cc.cc
xorg.libX11
xorg.libXcomposite
xorg.libXext
xorg.libXfixes
xorg.libXrender
xorg.libxcb
xorg.xcbutilimage
xorg.xcbutilkeysyms
];
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p "$out/opt/zoom"
cp -r * "$out/opt/zoom"
mkdir "$out/bin/"
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
--set-rpath "$libPath" "$out/opt/zoom/zoom"
ln -s "$out/opt/zoom/zoom" "$out/bin/zoom"
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment