git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39426 from woffs/googleearth

googleearth: remove

commitac18012dae302cc1812ec4409f86fd2a57ed349c authorMatthew Justin Bauer <mjbauer95@gmail.com> dateFri 4 May 2018, 14:33 (9 years ago) parentb051cdf81c1b9c
2 files changed−81
pkgs/applications/misc/googleearth/default.nix−79 pkgs/top-level/all-packages.nix−2
pkgs/applications/misc/googleearth/default.nixdeleted−79
@@ -1,79 +0,0 @@
1−{ stdenv, fetchurl, glibc, libGLU_combined, freetype, glib, libSM, libICE, libXi, libXv
2−, libXrender, libXrandr, libXfixes, libXcursor, libXinerama, libXext, libX11, qt4
3−, zlib, fontconfig, dpkg }:
4−
5−let
6− arch =
7− if stdenv.system == "x86_64-linux" then "amd64"
8− else if stdenv.system == "i686-linux" then "i386"
9− else throw "Unsupported system ${stdenv.system}";
10− sha256 =
11− if arch == "amd64"
12− then "0dwnppn5snl5bwkdrgj4cyylnhngi0g66fn2k41j3dvis83x24k6"
13− else "0gndbxrj3kgc2dhjqwjifr3cl85hgpm695z0wi01wvwzhrjqs0l2";
14− fullPath = stdenv.lib.makeLibraryPath [
15− glibc
16− glib
17− stdenv.cc.cc
18− libSM
19− libICE
20− libXi
21− libXv
22− libGLU_combined
23− libXrender
24− libXrandr
25− libXfixes
26− libXcursor
27− libXinerama
28− freetype
29− libXext
30− libX11
31− qt4
32− zlib
33− fontconfig
34− ];
35−in
36−stdenv.mkDerivation rec {
37− version = "7.1.4.1529";
38− name = "googleearth-${version}";
39−
40− src = fetchurl {
41− url = "https://dl.google.com/earth/client/current/google-earth-stable_current_${arch}.deb";
42− inherit sha256;
43− };
44−
45− phases = "unpackPhase installPhase";
46−
47− buildInputs = [ dpkg ];
48−
49− unpackPhase = ''
50− dpkg-deb -x ${src} ./
51− '';
52−
53− installPhase =''
54− mkdir $out
55− mv usr/* $out/
56− rmdir usr
57− mv * $out/
58− rm $out/bin/google-earth $out/opt/google/earth/free/google-earth
59− ln -s $out/opt/google/earth/free/googleearth $out/bin/google-earth
60−
61− patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
62− --set-rpath "${fullPath}:\$ORIGIN" \
63− $out/opt/google/earth/free/googleearth-bin
64−
65− for a in $out/opt/google/earth/free/*.so* ; do
66− patchelf --set-rpath "${fullPath}:\$ORIGIN" $a
67− done
68− '';
69−
70− dontPatchELF = true;
71−
72− meta = {
73− description = "A world sphere viewer";
74− homepage = http://earth.google.com;
75− license = stdenv.lib.licenses.unfree;
76− maintainers = [ stdenv.lib.maintainers.viric ];
77− platforms = stdenv.lib.platforms.linux;
78− };
79−}
pkgs/top-level/all-packages.nix−2
@@ -16114,8 +16114,6 @@ with pkgs;
1611416114
1611516115 google-chrome-dev = google-chrome.override { chromium = chromiumDev; channel = "dev"; };
1611616116
16117− googleearth = callPackage_i686 ../applications/misc/googleearth { };
16118−
1611916117 google-play-music-desktop-player = callPackage ../applications/audio/google-play-music-desktop-player {
1612016118 inherit (gnome2) GConf;
1612116119 };