2008-01-30 18:20:48 +01:00
|
|
|
args: with args;
|
2008-03-10 14:09:47 +01:00
|
|
|
stdenv.mkDerivation ( rec {
|
|
|
|
pname = "skype";
|
|
|
|
version = "1.4.0.118";
|
2007-09-12 09:26:37 +02:00
|
|
|
name = "skype-1.4";
|
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2007-09-12 09:26:37 +02:00
|
|
|
url = http://www.skype.com/go/getskype-linux-static;
|
2008-03-10 14:09:47 +01:00
|
|
|
sha256 = "1293f54811a36b2a1b83c56a4ad2844e58c753fe39b61422fac66b001d0f9e0c";
|
|
|
|
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
|
|
|
|
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
|
|
|
|
\$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 14:09:47 +01:00
|
|
|
})
|