2008-01-30 17:20:48 +00:00
|
|
|
args: with args;
|
2008-03-10 13:09:47 +00:00
|
|
|
stdenv.mkDerivation ( rec {
|
|
|
|
pname = "skype";
|
2009-01-12 21:12:07 +00:00
|
|
|
version = "2.0.0.72";
|
|
|
|
name = "skype-2.0";
|
2007-09-12 08:26:37 +01:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2007-09-12 08:26:37 +01:00
|
|
|
url = http://www.skype.com/go/getskype-linux-static;
|
2009-01-12 21:12:07 +00:00
|
|
|
sha256 = "2f37963e8f19c0ec5efd8631abe9633b6551f09dee024460c40fad10728bc580";
|
2008-03-10 13:09:47 +00:00
|
|
|
name = "${pname}_static-${version}.tar.bz2";
|
2007-09-12 08:26:37 +01:00
|
|
|
};
|
|
|
|
|
2008-03-10 13:09:47 +00:00
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
glibc
|
|
|
|
gcc.gcc
|
|
|
|
libSM
|
|
|
|
libICE
|
|
|
|
libXi
|
2009-01-12 21:12:07 +00:00
|
|
|
libXv
|
|
|
|
libXScrnSaver
|
2008-03-10 13:09:47 +00:00
|
|
|
libXrender
|
|
|
|
libXrandr
|
|
|
|
libXfixes
|
|
|
|
libXcursor
|
|
|
|
libXinerama
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
libXext
|
|
|
|
libX11
|
|
|
|
fontconfig
|
|
|
|
libsigcxx
|
|
|
|
];
|
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
|
|
|
installPhase ="
|
|
|
|
|
|
|
|
ensureDir \$out/{opt/skype/,bin};
|
|
|
|
cp -r * \$out/opt/skype/;
|
|
|
|
cat >\$out/bin/skype << EOF
|
|
|
|
#!/bin/sh
|
|
|
|
\$out/opt/skype/skype
|
|
|
|
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 13:09:47 +00:00
|
|
|
})
|