2008-01-30 18:20:48 +01:00
|
|
|
args: with args;
|
2008-03-10 14:09:47 +01:00
|
|
|
stdenv.mkDerivation ( rec {
|
|
|
|
pname = "skype";
|
2009-01-12 22:12:07 +01:00
|
|
|
version = "2.0.0.72";
|
|
|
|
name = "skype-2.0";
|
2007-09-12 09:26:37 +02:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2009-10-14 05:13:44 +02:00
|
|
|
url = http://download.skype.com/linux/skype_static-2.0.0.72.tar.bz2;
|
2009-01-12 22:12:07 +01:00
|
|
|
sha256 = "2f37963e8f19c0ec5efd8631abe9633b6551f09dee024460c40fad10728bc580";
|
2008-03-10 14:09:47 +01:00
|
|
|
name = "${pname}_static-${version}.tar.bz2";
|
2007-09-12 09:26:37 +02:00
|
|
|
};
|
|
|
|
|
2008-03-10 14:09:47 +01:00
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
glibc
|
|
|
|
gcc.gcc
|
|
|
|
libSM
|
|
|
|
libICE
|
|
|
|
libXi
|
2009-01-12 22:12:07 +01:00
|
|
|
libXv
|
|
|
|
libXScrnSaver
|
2008-03-10 14:09:47 +01:00
|
|
|
libXrender
|
|
|
|
libXrandr
|
|
|
|
libXfixes
|
|
|
|
libXcursor
|
|
|
|
libXinerama
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
libXext
|
|
|
|
libX11
|
|
|
|
fontconfig
|
|
|
|
libsigcxx
|
|
|
|
];
|
2007-09-12 09:26:37 +02:00
|
|
|
|
2008-03-10 14:09:47 +01:00
|
|
|
phases = "unpackPhase installPhase";
|
2007-09-12 09:26:37 +02:00
|
|
|
installPhase ="
|
|
|
|
|
|
|
|
ensureDir \$out/{opt/skype/,bin};
|
|
|
|
cp -r * \$out/opt/skype/;
|
|
|
|
cat >\$out/bin/skype << EOF
|
|
|
|
#!/bin/sh
|
2009-10-22 17:41:34 +02:00
|
|
|
\$out/opt/skype/skype --resources=\$out/opt/skype \\$@
|
2007-09-12 09:26:37 +02:00
|
|
|
EOF
|
|
|
|
chmod +x \$out/bin/skype
|
|
|
|
|
|
|
|
fullPath=
|
|
|
|
for i in \$buildInputs; do
|
|
|
|
fullPath=\$fullPath\${fullPath:+:}\$i/lib
|
|
|
|
done
|
|
|
|
|
|
|
|
echo patchelf --interpreter \"\$(cat \$NIX_GCC/nix-support/dynamic-linker)\" \\
|
|
|
|
--set-rpath \$fullPath \\
|
|
|
|
\$out/opt/skype/skype
|
|
|
|
patchelf --interpreter \"\$(cat \$NIX_GCC/nix-support/dynamic-linker)\" \\
|
|
|
|
--set-rpath \$fullPath \\
|
|
|
|
\$out/opt/skype/skype
|
|
|
|
";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A P2P-VoiceIP client";
|
|
|
|
homepage = http://www.skype.com;
|
|
|
|
license = "skype-eula";
|
|
|
|
};
|
2008-03-10 14:09:47 +01:00
|
|
|
})
|