anchor.diff:      abort "Unsupported platform";
   
   in
  -  stdenv.mkDerivation {
  +  stdenv.mkDerivation rec {
       name = "unigine-valley-${version}";
   
       src = fetchurl {
  
positive.code:         --prefix LD_LIBRARY_PATH : /run/opengl-driver/lib:$instdir/bin:$libPath
      '';
  
      stripDebugList = ["lib/unigine/valley/bin"];
  
      meta = {
        description = "The Unigine Valley GPU benchmarking tool";
        homepage = "http://unigine.com/products/benchmarks/valley/";
        license = stdenv.lib.licenses.unfree; # see also: /nix/store/*-unigine-valley-1.0/lib/unigine/valley/documentation/License.pdf
        maintainers = [ stdenv.lib.maintainers.kierdavis ];
        platforms = ["x86_64-linux" "i686-linux"];
      };
  
negative.code:       ./extractor.run --target $sourceRoot
      '';
  
      patchPhase = ''
        # Patch ELF files.
        elfs=$(find bin -type f | xargs file | grep ELF | cut -d ':' -f 1)
        for elf in $elfs; do
          patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $elf || true
        done
      '';
  
      installPhase = ''
        instdir=$out/${instPath}
  
        # Install executables and libraries
        mkdir -p $instdir/bin
  