From 1ebd86987c49d973c98e1e4e49af42a69e815c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 6 Oct 2009 17:37:39 +0000 Subject: [PATCH] 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 --- pkgs/applications/misc/googleearth/default.nix | 14 +++++++------- pkgs/top-level/all-packages.nix | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/misc/googleearth/default.nix b/pkgs/applications/misc/googleearth/default.nix index 4aeb03ff6d7c..2bb4e15ba8b0 100644 --- a/pkgs/applications/misc/googleearth/default.nix +++ b/pkgs/applications/misc/googleearth/default.nix @@ -1,15 +1,16 @@ { 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 */ assert stdenv.system == "i686-linux"; stdenv.mkDerivation { - name = "googleearth-5.11337.1968"; + name = "googleearth-5.1.3509.4636"; src = fetchurl { url = http://dl.google.com/earth/client/current/GoogleEarthLinux.bin; - sha256 = "1h090rbdkp3pa97xkkjzj71k343ic8dlngj2cihw5cd1hh3f9idc"; + sha256 = "6c948c64eed5f30adb67019c0d26c148b9ad7a821891018548da650fe812dca8"; }; buildInputs = [ @@ -29,6 +30,7 @@ stdenv.mkDerivation { freetype libXext libX11 + zlib ]; phases = "unpackPhase installPhase"; @@ -40,8 +42,6 @@ stdenv.mkDerivation { ensureDir $out/{opt/googleearth/,bin}; tar xf googleearth-data.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 cat > $out/bin/googleearth << EOF #!/bin/sh @@ -55,12 +55,12 @@ stdenv.mkDerivation { fullPath=$fullPath:$i/lib done - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ + ${patchelf05}/bin/patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ --set-rpath $fullPath \ $out/opt/googleearth/googleearth-bin for a in $out/opt/googleearth/*.so* ; do - patchelf --set-rpath $fullPath $a + ${patchelf05}/bin/patchelf --set-rpath $fullPath $a done ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ce717483a469..c0c16ae22033 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6991,10 +6991,11 @@ let }; googleearth = import ../applications/misc/googleearth { - inherit stdenv fetchurl glibc mesa freetype; + inherit stdenv fetchurl glibc mesa freetype zlib; inherit (gtkLibs) glib; inherit (xlibs) libSM libICE libXi libXv libXrender libXrandr libXfixes libXcursor libXinerama libXext libX11; + inherit patchelf05; }; gpsbabel = import ../applications/misc/gpsbabel {