Last active
April 3, 2016 09:20
-
-
Save edofic/dd98c682077475ad4e7ac305a12030fc to your computer and use it in GitHub Desktop.
Zoom.us client nix expression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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