diff options
author | Janne Heß <janne@hess.ooo> | 2022-01-22 22:58:12 +0100 |
---|---|---|
committer | Janne Heß <janne@hess.ooo> | 2022-01-22 22:58:12 +0100 |
commit | 76087ffda91251227cca1488d2b1a51db665592a (patch) | |
tree | 513026bd1a91674df4a13c2e1f22b56a56f831e4 /pkgs | |
parent | 765323fb2d8ba0e73a7ac5831bc86973a984c36e (diff) | |
download | nixpkgs-76087ffda91251227cca1488d2b1a51db665592a.tar nixpkgs-76087ffda91251227cca1488d2b1a51db665592a.tar.gz nixpkgs-76087ffda91251227cca1488d2b1a51db665592a.tar.bz2 nixpkgs-76087ffda91251227cca1488d2b1a51db665592a.tar.lz nixpkgs-76087ffda91251227cca1488d2b1a51db665592a.tar.xz nixpkgs-76087ffda91251227cca1488d2b1a51db665592a.tar.zst nixpkgs-76087ffda91251227cca1488d2b1a51db665592a.zip |
googleearth: Drop the package
See https://support.google.com/earth/thread/2298894/google-earth-frequently-asked-questions?msgid=2298894 points 2 and 8. Download 404s
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/misc/googleearth/default.nix | 106 | ||||
-rw-r--r-- | pkgs/top-level/aliases.nix | 1 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 1 insertions, 108 deletions
diff --git a/pkgs/applications/misc/googleearth/default.nix b/pkgs/applications/misc/googleearth/default.nix deleted file mode 100644 index edf1fc54ba9..00000000000 --- a/pkgs/applications/misc/googleearth/default.nix +++ /dev/null @@ -1,106 +0,0 @@ -{ lib, stdenv, fetchurl, glibc, libGLU, libGL, freetype, glib, libSM, libICE, libXi, libXv -, libXrender, libXrandr, libXfixes, libXcursor, libXinerama, libXext, libX11 -, zlib, fontconfig, dpkg, libproxy, libxml2, gst_all_1, dbus }: - -let - arch = - if stdenv.hostPlatform.system == "x86_64-linux" then "amd64" - else if stdenv.hostPlatform.system == "i686-linux" then "i386" - else throw "Unsupported system ${stdenv.hostPlatform.system}"; - sha256 = - if arch == "amd64" - then "0dwnppn5snl5bwkdrgj4cyylnhngi0g66fn2k41j3dvis83x24k6" - else "0gndbxrj3kgc2dhjqwjifr3cl85hgpm695z0wi01wvwzhrjqs0l2"; - version = "7.1.8.3036"; - fullPath = lib.makeLibraryPath [ - glibc - glib - stdenv.cc.cc - libSM - libICE - libXi - libXv - libGLU libGL - libXrender - libXrandr - libXfixes - libXcursor - libXinerama - freetype - libXext - libX11 - zlib - fontconfig - libproxy - libxml2 - dbus - gst_all_1.gstreamer - gst_all_1.gst-plugins-base - ]; -in -stdenv.mkDerivation rec { - pname = "googleearth"; - inherit version; - src = fetchurl { - url = "https://dl.google.com/linux/earth/deb/pool/main/g/google-earth-stable/google-earth-stable_${version}-r0_${arch}.deb"; - inherit sha256; - }; - - phases = [ "unpackPhase" "installPhase" "checkPhase" ]; - - doCheck = true; - - buildInputs = [ dpkg ]; - - unpackPhase = '' - dpkg-deb -x ${src} ./ - ''; - - installPhase ='' - mkdir $out - mv usr/* $out/ - rmdir usr - mv * $out/ - rm $out/bin/google-earth $out/opt/google/earth/free/googleearth - - # patch and link googleearth binary - ln -s $out/opt/google/earth/free/googleearth-bin $out/bin/googleearth - patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ - --set-rpath "${fullPath}:\$ORIGIN" \ - $out/opt/google/earth/free/googleearth-bin - - # patch and link gpsbabel binary - ln -s $out/opt/google/earth/free/gpsbabel $out/bin/gpsbabel - patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ - --set-rpath "${fullPath}:\$ORIGIN" \ - $out/opt/google/earth/free/gpsbabel - - # patch libraries - for a in $out/opt/google/earth/free/*.so* ; do - patchelf --set-rpath "${fullPath}:\$ORIGIN" $a - done - - # Add desktop config file and icons - mkdir -p $out/share/{applications,icons/hicolor/{16x16,22x22,24x24,32x32,48x48,64x64,128x128,256x256}/apps,pixmaps} - ln -s $out/opt/google/earth/free/google-earth.desktop $out/share/applications/google-earth.desktop - sed -i -e "s|Exec=.*|Exec=$out/bin/googleearth|g" $out/opt/google/earth/free/google-earth.desktop - for size in 16 22 24 32 48 64 128 256; do - ln -s $out/opt/google/earth/free/product_logo_"$size".png $out/share/icons/hicolor/"$size"x"$size"/apps/google-earth.png - done - ln -s $out/opt/google/earth/free/product_logo_256.png $out/share/pixmaps/google-earth.png - ''; - - checkPhase = '' - $out/bin/gpsbabel -V > /dev/null - ''; - - dontPatchELF = true; - - meta = with lib; { - description = "A world sphere viewer"; - homepage = "http://earth.google.com"; - license = licenses.unfree; - maintainers = with maintainers; [ markus1189 ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 295a3bc231f..a77e2d21ad2 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -368,6 +368,7 @@ mapAliases ({ google-music-scripts = throw "google-music-scripts has been removed because Google Play Music was discontinued"; # added 2021-03-07 google-musicmanager = throw "google-musicmanager has been removed because Google Play Music was discontinued"; # added 2021-03-07 googleAuthenticator = google-authenticator; # added 2016-10-16 + googleearth = throw "the non-pro version of Google Earth was removed because it was discontinued and downloading it isn't possible anymore"; # added 2022-01-22 grantlee5 = libsForQt5.grantlee; # added 2015-12-19 graalvm8 = throw "graalvm8-ce has been removed by upstream."; # added 2021-10-19 graalvm8-ce = throw "graalvm8-ce has been removed by upstream."; # added 2021-10-19 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b297c3183c0..49ff10c6487 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25964,8 +25964,6 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) AppKit AudioToolbox; }; - googleearth = callPackage ../applications/misc/googleearth { }; - googleearth-pro = libsForQt5.callPackage ../applications/misc/googleearth-pro { }; google-chrome = callPackage ../applications/networking/browsers/google-chrome { gconf = gnome2.GConf; }; |