Updating googleearth.
I had to use a newer patchelf (0.5), otherwise patchelf (0.4) died with an error at setting the rpath for a lib. ("virtual address overrun" or something like that) I still don't know of any stable url for a given version, so we will have this working until they change the package file again updating. svn path=/nixpkgs/trunk/; revision=17680
This commit is contained in:
parent
1028742c3b
commit
1ebd86987c
|
@ -1,15 +1,16 @@
|
||||||
{ stdenv, fetchurl, glibc, mesa, freetype, glib, libSM, libICE, libXi, libXv,
|
{ stdenv, fetchurl, glibc, mesa, freetype, glib, libSM, libICE, libXi, libXv,
|
||||||
libXrender, libXrandr, libXfixes, libXcursor, libXinerama, libXext, libX11 }:
|
libXrender, libXrandr, libXfixes, libXcursor, libXinerama, libXext, libX11,
|
||||||
|
zlib, patchelf05 }:
|
||||||
|
|
||||||
/* I haven't found any x86_64 package from them */
|
/* I haven't found any x86_64 package from them */
|
||||||
assert stdenv.system == "i686-linux";
|
assert stdenv.system == "i686-linux";
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "googleearth-5.11337.1968";
|
name = "googleearth-5.1.3509.4636";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://dl.google.com/earth/client/current/GoogleEarthLinux.bin;
|
url = http://dl.google.com/earth/client/current/GoogleEarthLinux.bin;
|
||||||
sha256 = "1h090rbdkp3pa97xkkjzj71k343ic8dlngj2cihw5cd1hh3f9idc";
|
sha256 = "6c948c64eed5f30adb67019c0d26c148b9ad7a821891018548da650fe812dca8";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -29,6 +30,7 @@ stdenv.mkDerivation {
|
||||||
freetype
|
freetype
|
||||||
libXext
|
libXext
|
||||||
libX11
|
libX11
|
||||||
|
zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
phases = "unpackPhase installPhase";
|
phases = "unpackPhase installPhase";
|
||||||
|
@ -40,8 +42,6 @@ stdenv.mkDerivation {
|
||||||
ensureDir $out/{opt/googleearth/,bin};
|
ensureDir $out/{opt/googleearth/,bin};
|
||||||
tar xf googleearth-data.tar -C $out/opt/googleearth
|
tar xf googleearth-data.tar -C $out/opt/googleearth
|
||||||
tar xf googleearth-linux-x86.tar -C $out/opt/googleearth
|
tar xf googleearth-linux-x86.tar -C $out/opt/googleearth
|
||||||
rm $out/opt/googleearth/libstdc+*
|
|
||||||
rm $out/opt/googleearth/libgcc*
|
|
||||||
cp bin/googleearth $out/opt/googleearth
|
cp bin/googleearth $out/opt/googleearth
|
||||||
cat > $out/bin/googleearth << EOF
|
cat > $out/bin/googleearth << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
@ -55,12 +55,12 @@ stdenv.mkDerivation {
|
||||||
fullPath=$fullPath:$i/lib
|
fullPath=$fullPath:$i/lib
|
||||||
done
|
done
|
||||||
|
|
||||||
patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
${patchelf05}/bin/patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $fullPath \
|
--set-rpath $fullPath \
|
||||||
$out/opt/googleearth/googleearth-bin
|
$out/opt/googleearth/googleearth-bin
|
||||||
|
|
||||||
for a in $out/opt/googleearth/*.so* ; do
|
for a in $out/opt/googleearth/*.so* ; do
|
||||||
patchelf --set-rpath $fullPath $a
|
${patchelf05}/bin/patchelf --set-rpath $fullPath $a
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -6991,10 +6991,11 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
googleearth = import ../applications/misc/googleearth {
|
googleearth = import ../applications/misc/googleearth {
|
||||||
inherit stdenv fetchurl glibc mesa freetype;
|
inherit stdenv fetchurl glibc mesa freetype zlib;
|
||||||
inherit (gtkLibs) glib;
|
inherit (gtkLibs) glib;
|
||||||
inherit (xlibs) libSM libICE libXi libXv libXrender libXrandr libXfixes
|
inherit (xlibs) libSM libICE libXi libXv libXrender libXrandr libXfixes
|
||||||
libXcursor libXinerama libXext libX11;
|
libXcursor libXinerama libXext libX11;
|
||||||
|
inherit patchelf05;
|
||||||
};
|
};
|
||||||
|
|
||||||
gpsbabel = import ../applications/misc/gpsbabel {
|
gpsbabel = import ../applications/misc/gpsbabel {
|
||||||
|
|
Loading…
Reference in New Issue