Unverified Commit 469dabb5 authored by Artturi's avatar Artturi Committed by GitHub
Browse files

Merge pull request #227793 from nomeata/googeearth-closure

parents a8ccd0ae dc97d2c2
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -71,16 +71,17 @@ mkDerivation rec {

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

  installPhase =''
    runHook preInstall

    mkdir $out
    mv usr/* $out/
    rmdir usr
    mv * $out/
    mv deb/usr/* $out/
    rmdir deb/usr
    mv deb/* $out/
    rm $out/bin/google-earth-pro $out/opt/google/earth/pro/googleearth

    # patch and link googleearth binary