anchor.diff:        ./extractor.run --target $sourceRoot
       '';
   
  -    # The executable loads libGPUMonitor_${arch}.so "manually" (i.e. not through the ELF interpreter).
  -    # However, it still uses the RPATH to look for it.
       patchPhase = ''
         # Patch ELF files.
         elfs=$(find bin -type f | xargs file | grep ELF | cut -d ':' -f 1)
         for elf in $elfs; do
  -        echo "Patching $elf"
           patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $elf || true
         done
       '';
   
  -    configurePhase = "";
  -    buildPhase = "";
  -
       installPhase = ''
  -      instdir=$out/lib/unigine/valley
  +      instdir=$out/${instPath}
   
         # Install executables and libraries
         mkdir -p $instdir/bin
  
positive.code:     abort "Unsupported platform";
  
  in
    stdenv.mkDerivation {
      name = "unigine-valley-${version}";
  
      src = fetchurl {
  
negative.code:     };
  
      sourceRoot = "Unigine_Valley-${version}";
      instPath = "lib/unigine/valley";
  
      buildInputs = [file makeWrapper];
  
  