1 { lib, stdenv, fetchurl, dpkg
2 , alsa-lib, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, gdk-pixbuf, glib, glibc, gnome
3 , gtk3, libappindicator-gtk3, libnotify, libpulseaudio, libsecret, libv4l, nspr, nss, pango, systemd, wrapGAppsHook, xorg
4 , at-spi2-atk, libuuid, at-spi2-core, libdrm, mesa, libxkbcommon, libxshmfence }:
8 # Please keep the version x.y.0.z and do not update to x.y.76.z because the
9 # source of the latter disappears much faster.
10 version = "8.110.76.107";
12 rpath = lib.makeLibraryPath [
61 ] + ":${stdenv.cc.cc.lib}/lib64";
64 if stdenv.hostPlatform.system == "x86_64-linux" then
67 "https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_${version}_amd64.deb"
68 "https://mirror.cs.uchicago.edu/skype/pool/main/s/skypeforlinux/skypeforlinux_${version}_amd64.deb"
69 "https://web.archive.org/web/https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_${version}_amd64.deb"
71 sha256 = "sha256-ocXhISwEtwzPd1dOPjgIj5UQ/8sqq2gUtmZ8KZBAxKM=";
74 throw "Skype for linux is not supported on ${stdenv.hostPlatform.system}";
76 in stdenv.mkDerivation {
77 pname = "skypeforlinux";
80 system = "x86_64-linux";
86 glib # For setup hook populating GSETTINGS_SCHEMA_PATH
89 buildInputs = [ dpkg ];
95 cp -av $out/usr/* $out
96 rm -rf $out/opt $out/usr
97 rm $out/bin/skypeforlinux
99 ln -s "$out/share/skypeforlinux/skypeforlinux" "$out/bin/skypeforlinux"
101 # Otherwise it looks "suspicious"
106 for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* -or -name \*.node\* \) ); do
107 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
108 patchelf --set-rpath ${rpath}:$out/share/skypeforlinux $file || true
111 # Fix the desktop link
112 substituteInPlace $out/share/applications/skypeforlinux.desktop \
113 --replace /usr/bin/ ""
114 substituteInPlace $out/share/applications/skypeforlinux-share.desktop \
115 --replace /usr/bin/ ""
116 substituteInPlace $out/share/kservices5/ServiceMenus/skypeforlinux.desktop \
117 --replace /usr/bin/ ""
121 description = "Linux client for skype";
122 homepage = "https://www.skype.com";
123 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
124 license = licenses.unfree;
125 maintainers = with maintainers; [ panaeon jraygauthier ];
126 platforms = [ "x86_64-linux" ];
127 mainProgram = "skypeforlinux";