3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #96 from aszlig/google-talkplugin

google-talk-plugin: Prefer Debian package.
This commit is contained in:
Mathijs Kwik 2012-08-10 22:58:04 -07:00
commit eaeb0a41b6

View file

@ -7,6 +7,8 @@ with stdenv.lib;
let
baseURL = "http://dl.google.com/linux/talkplugin/deb/pool/main/g/google-talkplugin";
rpathPlugin = makeLibraryPath
[ mesa
xorg.libXt
@ -39,28 +41,26 @@ let
in
stdenv.mkDerivation {
name = "google-talk-plugin-3.2.4.0";
stdenv.mkDerivation rec {
name = "google-talk-plugin-${version}";
version = "3.2.4.0";
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = "http://dl.google.com/linux/direct/google-talkplugin_current_x86_64.rpm";
sha256 = "0gf1bsd52pa47h53x5n1ljn07xc23pzvdc7q3lbqy12zf9szqq2c";
url = "${baseURL}/google-talkplugin_${version}-1_amd64.deb";
sha256 = "0hd8iyv092fr4bz760xjawiad581hphddv608d0dvzy2bhnl17g1";
}
else if stdenv.system == "i686-linux" then
fetchurl {
url = "http://dl.google.com/linux/direct/google-talkplugin_current_i386.rpm";
sha256 = "055572zi1j3w16lj4cdk686abyhz1xd43445bwk6v38qr4f188dd";
url = "${baseURL}/google-talkplugin_${version}-1_i386.deb";
sha256 = "13vqs4k16a6bzc5i4zpnakh31nkdqp7m9cv7p16r1sq5smv1331i";
}
else throw "Google Talk does not support your platform.";
buildInputs = [ rpm cpio ];
unpackPhase =
''
rpm2cpio $src | cpio -i --make-directories -v
'';
unpackPhase = ''
ar p "$src" data.tar.gz | tar xz
'';
installPhase =
''