google-talk-plugin: Prefer Debian package.
The reason is because unpacking debian packages requires fewer dependencies (ar, gzip and tar, nothing more), and in addition we can explicitly reference a version number from the apt repository.
This commit is contained in:
parent
a8ef82d372
commit
cb9b55a197
|
@ -7,6 +7,8 @@ with stdenv.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
baseURL = "http://dl.google.com/linux/talkplugin/deb/pool/main/g/google-talkplugin";
|
||||||
|
|
||||||
rpathPlugin = makeLibraryPath
|
rpathPlugin = makeLibraryPath
|
||||||
[ mesa
|
[ mesa
|
||||||
xorg.libXt
|
xorg.libXt
|
||||||
|
@ -39,28 +41,26 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "google-talk-plugin-3.2.4.0";
|
name = "google-talk-plugin-${version}";
|
||||||
|
version = "3.2.4.0";
|
||||||
|
|
||||||
src =
|
src =
|
||||||
if stdenv.system == "x86_64-linux" then
|
if stdenv.system == "x86_64-linux" then
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "http://dl.google.com/linux/direct/google-talkplugin_current_x86_64.rpm";
|
url = "${baseURL}/google-talkplugin_${version}-1_amd64.deb";
|
||||||
sha256 = "0gf1bsd52pa47h53x5n1ljn07xc23pzvdc7q3lbqy12zf9szqq2c";
|
sha256 = "0hd8iyv092fr4bz760xjawiad581hphddv608d0dvzy2bhnl17g1";
|
||||||
}
|
}
|
||||||
else if stdenv.system == "i686-linux" then
|
else if stdenv.system == "i686-linux" then
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "http://dl.google.com/linux/direct/google-talkplugin_current_i386.rpm";
|
url = "${baseURL}/google-talkplugin_${version}-1_i386.deb";
|
||||||
sha256 = "055572zi1j3w16lj4cdk686abyhz1xd43445bwk6v38qr4f188dd";
|
sha256 = "13vqs4k16a6bzc5i4zpnakh31nkdqp7m9cv7p16r1sq5smv1331i";
|
||||||
}
|
}
|
||||||
else throw "Google Talk does not support your platform.";
|
else throw "Google Talk does not support your platform.";
|
||||||
|
|
||||||
buildInputs = [ rpm cpio ];
|
unpackPhase = ''
|
||||||
|
ar p "$src" data.tar.gz | tar xz
|
||||||
unpackPhase =
|
'';
|
||||||
''
|
|
||||||
rpm2cpio $src | cpio -i --make-directories -v
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue