anchor.diff:        --prefix MONO_GAC_PREFIX : "${developDotnetPath}"
     '';
   
  +  preFixup = ''
  +    patchFile() {
  +      ftype="$(file -b "$1")"
  +      if [[ "$ftype" =~ LSB\ .*dynamically\ linked ]]; then
  +        if [[ "$ftype" =~ 32-bit ]]; then
  +          rpath="${libPath32}"
  +          intp="$(cat $NIX_CC/nix-support/dynamic-linker-m32)"
  +        else
  +          rpath="${libPath64}"
  +          intp="$(cat $NIX_CC/nix-support/dynamic-linker)"
  +        fi
  +
  +        oldRpath="$(patchelf --print-rpath "$1")"
  +        # Always search at least for libraries in origin directory.
  +        rpath="''${oldRpath:-\$ORIGIN}:$rpath"
  +        if [[ "$ftype" =~ LSB\ shared ]]; then
  +          patchelf \
  +            --set-rpath "$rpath" \
  +            "$1"
  +        elif [[ "$ftype" =~ LSB\ executable ]]; then
  +          patchelf \
  +            --set-rpath "$rpath" \
  +            --interpreter "$intp" \
  +            "$1"
  +        fi
  +      fi
  +    }
  +
  +    # Exclude PlaybackEngines to build something that can be run on FHS-compliant Linuxes
  +    find $unitydir -name PlaybackEngines -prune -o -type f -print | while read path; do
  +      patchFile "$path"
  +    done
  +  '';
  +
     dontStrip = true;
     dontPatchELF = true;
   
  
positive.code:   version = "${ver}x${build}";
  
    src = fetchurl {
      url = "http://beta.unity3d.com/download/a2454d41e248/unity-editor-installer-${version}Linux.sh";
      sha256 = "1hvas4n1hm0qp0265gk1nh03kypd9690fnxvzg70f5ni9q97pvm0";
    };
  
    nosuidLib = ./unity-nosuid.c;
  
negative.code:   '';
  
    buildPhase = ''
  
      cd Editor
  
      $CC -fPIC -shared -o libunity-nosuid.so $nosuidLib -ldl
      strip libunity-nosuid.so
  
      cd ..
    '';
  