mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
2e6bf42a22
There ver very many conflicts, basically all due to name -> pname+version. Fortunately, almost everything was auto-resolved by kdiff3, and for now I just fixed up a couple evaluation problems, as verified by the tarball job. There might be some fallback to these conflicts, but I believe it should be minimal. Hydra nixpkgs: ?compare=1538299
116 lines
2.6 KiB
Nix
116 lines
2.6 KiB
Nix
{ stdenv, fetchurl, dpkg
|
|
, alsaLib, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, gdk-pixbuf, glib, glibc, gnome2, gnome3
|
|
, gtk3, libnotify, libpulseaudio, libsecret, libv4l, nspr, nss, pango, systemd, wrapGAppsHook, xorg
|
|
, at-spi2-atk, libuuid, at-spi2-core }:
|
|
|
|
let
|
|
|
|
# Please keep the version x.y.0.z and do not update to x.y.76.z because the
|
|
# source of the latter disappears much faster.
|
|
version = "8.51.0.72";
|
|
|
|
rpath = stdenv.lib.makeLibraryPath [
|
|
alsaLib
|
|
atk
|
|
at-spi2-atk
|
|
at-spi2-core
|
|
cairo
|
|
cups
|
|
curl
|
|
dbus
|
|
expat
|
|
fontconfig
|
|
freetype
|
|
glib
|
|
glibc
|
|
libsecret
|
|
libuuid
|
|
|
|
gnome2.GConf
|
|
gdk-pixbuf
|
|
gtk3
|
|
|
|
gnome3.gnome-keyring
|
|
|
|
libnotify
|
|
libpulseaudio
|
|
nspr
|
|
nss
|
|
pango
|
|
stdenv.cc.cc
|
|
systemd
|
|
libv4l
|
|
|
|
xorg.libxkbfile
|
|
xorg.libX11
|
|
xorg.libXcomposite
|
|
xorg.libXcursor
|
|
xorg.libXdamage
|
|
xorg.libXext
|
|
xorg.libXfixes
|
|
xorg.libXi
|
|
xorg.libXrandr
|
|
xorg.libXrender
|
|
xorg.libXtst
|
|
xorg.libXScrnSaver
|
|
xorg.libxcb
|
|
] + ":${stdenv.cc.cc.lib}/lib64";
|
|
|
|
src =
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then
|
|
fetchurl {
|
|
url = "https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_${version}_amd64.deb";
|
|
sha256 = "1rv3jxirlfy0gvphw8cxmwmghbak5m5wj0y3bgamcvma48mzdfk3";
|
|
}
|
|
else
|
|
throw "Skype for linux is not supported on ${stdenv.hostPlatform.system}";
|
|
|
|
in stdenv.mkDerivation {
|
|
pname = "skypeforlinux";
|
|
inherit version;
|
|
|
|
system = "x86_64-linux";
|
|
|
|
inherit src;
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook
|
|
glib # For setup hook populating GSETTINGS_SCHEMA_PATH
|
|
];
|
|
|
|
buildInputs = [ dpkg ];
|
|
|
|
dontUnpack = true;
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
dpkg -x $src $out
|
|
cp -av $out/usr/* $out
|
|
rm -rf $out/opt $out/usr
|
|
rm $out/bin/skypeforlinux
|
|
|
|
ln -s "$out/share/skypeforlinux/skypeforlinux" "$out/bin/skypeforlinux"
|
|
|
|
# Otherwise it looks "suspicious"
|
|
chmod -R g-w $out
|
|
'';
|
|
|
|
postFixup = ''
|
|
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* -or -name \*.node\* \) ); do
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
|
|
patchelf --set-rpath ${rpath}:$out/share/skypeforlinux $file || true
|
|
done
|
|
|
|
# Fix the desktop link
|
|
substituteInPlace $out/share/applications/skypeforlinux.desktop \
|
|
--replace /usr/bin/ $out/bin/
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Linux client for skype";
|
|
homepage = https://www.skype.com;
|
|
license = licenses.unfree;
|
|
maintainers = with stdenv.lib.maintainers; [ panaeon jraygauthier ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|