2010-02-12 23:19:37 +00:00
|
|
|
{stdenv, fetchurl, alsaLib, libXv, libXi, libXrender, libXrandr, zlib, glib
|
|
|
|
, libXext, libX11, libXScrnSaver, libSM, qt, libICE, freetype, fontconfig}:
|
|
|
|
|
|
|
|
assert stdenv.system == "i686-linux";
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "skype-2.1.0.81";
|
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";
|
|
|
|
sha256 = "1x18m4900c0ssaq95wv8mhhgwvw9fh66dszx7zq24zgvb2v1h4jz";
|
2007-09-12 08:26:37 +01:00
|
|
|
};
|
|
|
|
|
2008-03-10 13:09:47 +00:00
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
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-02-12 23:19:37 +00:00
|
|
|
qt
|
|
|
|
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
|
|
|
|
'';
|
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
|
|
|
}
|