2011-08-02 16:55:55 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib, libXv, libXi, libXrender, libXrandr, zlib, glib
|
|
|
|
, libXext, libX11, libXScrnSaver, libSM, qt4, libICE, freetype, fontconfig
|
|
|
|
, pulseaudio }:
|
2010-02-12 23:19:37 +00:00
|
|
|
|
|
|
|
assert stdenv.system == "i686-linux";
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-07-27 17:07:20 +01:00
|
|
|
name = "skype-2.2.0.35";
|
2007-09-12 08:26:37 +01:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2010-02-12 23:19:37 +00:00
|
|
|
url = "http://download.skype.com/linux/${name}.tar.bz2";
|
2011-07-27 17:07:20 +01:00
|
|
|
sha256 = "157ba3ci12bq0nv2m8wlsab45ib5sccqagyna8nixnhqw9q72sxm";
|
2007-09-12 08:26:37 +01:00
|
|
|
};
|
|
|
|
|
2008-03-10 13:09:47 +00:00
|
|
|
buildInputs = [
|
2011-08-02 16:55:55 +01:00
|
|
|
alsaLib
|
|
|
|
pulseaudio
|
2010-02-12 23:19:37 +00:00
|
|
|
stdenv.glibc
|
|
|
|
stdenv.gcc.gcc
|
2009-01-12 21:12:07 +00:00
|
|
|
libXv
|
2008-03-10 13:09:47 +00:00
|
|
|
libXext
|
|
|
|
libX11
|
2010-08-11 14:25:30 +01:00
|
|
|
qt4
|
2010-02-12 23:19:37 +00:00
|
|
|
libXScrnSaver
|
|
|
|
libSM
|
|
|
|
libICE
|
|
|
|
libXi
|
|
|
|
libXrender
|
|
|
|
libXrandr
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
zlib
|
|
|
|
glib
|
2008-03-10 13:09:47 +00:00
|
|
|
];
|
2007-09-12 08:26:37 +01:00
|
|
|
|
2008-03-10 13:09:47 +00:00
|
|
|
phases = "unpackPhase installPhase";
|
2007-09-12 08:26:37 +01:00
|
|
|
|
2010-02-12 23:19:37 +00:00
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out/{opt/skype/,bin}
|
|
|
|
cp -r * $out/opt/skype/
|
|
|
|
|
|
|
|
fullPath=
|
|
|
|
for i in $buildNativeInputs; do
|
|
|
|
fullPath=$fullPath''${fullPath:+:}$i/lib
|
|
|
|
done
|
2007-09-12 08:26:37 +01:00
|
|
|
|
2010-02-12 23:19:37 +00:00
|
|
|
dynlinker="$(cat $NIX_GCC/nix-support/dynamic-linker)"
|
2007-09-12 08:26:37 +01:00
|
|
|
|
2010-02-12 23:19:37 +00:00
|
|
|
cat > $out/bin/skype << EOF
|
|
|
|
#!${stdenv.shell}
|
|
|
|
export LD_LIBRARY_PATH=$fullPath:$LD_LIBRARY_PATH
|
|
|
|
$dynlinker $out/opt/skype/skype --resources=$out/opt/skype "\$@"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $out/bin/skype
|
2012-01-13 22:21:48 +00:00
|
|
|
|
|
|
|
# Desktop icon for Skype
|
|
|
|
patch skype.desktop << EOF
|
|
|
|
5c5
|
|
|
|
< Icon=skype.png
|
|
|
|
---
|
|
|
|
> Icon=$out/opt/skype/icons/SkypeBlue_48x48.png
|
|
|
|
EOF
|
|
|
|
ensureDir $out/share/applications
|
|
|
|
mv skype.desktop $out/share/applications
|
2010-02-12 23:19:37 +00:00
|
|
|
'';
|
2007-09-12 08:26:37 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A P2P-VoiceIP client";
|
|
|
|
homepage = http://www.skype.com;
|
|
|
|
license = "skype-eula";
|
|
|
|
};
|
2010-02-12 23:19:37 +00:00
|
|
|
}
|