googleearth-pro: fix build (#420805)

This commit is contained in:
Aleksana
2025-07-04 11:34:26 +08:00
committed by GitHub
@@ -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 = ''