Unverified Commit 3b5b2bf5 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

googleearth-pro: fix build (#420805)

parents 9158e750 4f4cd59c
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -37,6 +37,14 @@ let
      "amd64"
    else
      throw "Unsupported system ${stdenv.hostPlatform.system} ";

  libxml2' = libxml2.overrideAttrs rec {
    version = "2.13.8";
    src = fetchurl {
      url = "mirror://gnome/sources/libxml2/${lib.versions.majorMinor version}/libxml2-${version}.tar.xz";
      hash = "sha256-J3KUyzMRmrcbK8gfL0Rem8lDW4k60VuyzSsOhZoO6Eo=";
    };
  };
in
mkDerivation rec {
  pname = "googleearth-pro";
@@ -70,7 +78,7 @@ mkDerivation rec {
    libXrender
    libproxy
    libxcb
    libxml2
    libxml2'
    sqlite
    zlib
    alsa-lib
@@ -81,9 +89,13 @@ mkDerivation rec {
  dontBuild = true;

  unpackPhase = ''
    runHook preUnpack

    # deb file contains a setuid binary, so 'dpkg -x' doesn't work here
    mkdir deb
    dpkg --fsys-tarfile $src | tar --extract -C deb

    runHook postUnpack
  '';

  installPhase = ''