anchor.diff:      sha256 = "0j1dzry6wf6cw3yr318z81rmj79r6w5l6vpilm7m9h786jrgywa1";
     };
   
  -  buildInputs = [ makeWrapper which ];
  +  buildInputs = [ makeWrapper which xdg_utils ];
   
     unpackPhase = ''
  +    mkdir -p phony-home $out/share/applications
  +    export HOME=$TMP/phony-home
  +
       mkdir ${name}
       echo "y" | sh $src -d ${name}
       sourceRoot=${name}
  +
  +    substitute phony-home/.local/share/applications/genymobile-genymotion.desktop \
  +      $out/share/applications/genymobile-genymotion.desktop --replace "$TMP/${name}" "$out/libexec"
     '';
   
     installPhase = ''
       mkdir -p $out/bin $out/libexec
       mv genymotion $out/libexec/
  +    ln -s $out/libexec/genymotion/{genymotion,player} $out/bin
     '';
   
     fixupPhase = ''
  
positive.code: { stdenv, requireFile, makeWrapper, which, zlib, mesa_noglu, glib, xorg, libxkbcommon
  # For glewinfo
  , libXmu, libXi, libXext }:
  
  
negative.code: 
      patchExecutable() {
        patchInterpreter "$1"
        wrapProgram "$out/libexec/genymotion/$1" \
          --set "LD_LIBRARY_PATH" "${libPath}"
      }
  
  