anchor.diff:    };
   
     graalvm8 = stdenv.mkDerivation rec {
  -    version = "1.0.0-rc1";
  +    version = "1.0.0-rc3";
       name = let
                n = "graal-${version}";
              in if (lib.stringLength n) == (lib.stringLength jvmci8.name) then
  
positive.code:       owner  = "oracle";
        repo   = "graal";
        rev    = "vm-${version}";
        sha256 = "1j1m53d8x0mkvqr9lwlkjddfha5jrsq9hxlblbjv1bqcivfmmfn7";
      };
      buildInputs = [ mx zlib mercurial jvmci8 ];
      postUnpack = ''
  
negative.code: 
        export MX_ALT_OUTPUT_ROOT=$NIX_BUILD_TOP/mxbuild
        export MX_CACHE_DIR=${makeMxCache graal-mxcache}
        ( cd substratevm
  
          mkdir -p clibraries
          mx --java-home $out build
  
          # bootstrap native-image (that was removed from mx build in https://github.com/oracle/graal/commit/140d7a7edf54ec5872a8ff45869cd1ae499efde4)
          mx --java-home $out native-image -cp $MX_ALT_OUTPUT_ROOT/substratevm/dists/svm-driver.jar com.oracle.svm.driver.NativeImage
        )
        ( cd tools
          mx --java-home $out build
        )
      '';
      installPhase = ''
        # add graal files modelling after directory structure of "graalvm-ce" binary distribution
        mkdir -p $out/jre/tools/{profiler,chromeinspector,truffle/builder} $out/jre/lib/{graal,include,truffle/include}
        cp -vpLR substratevm/svmbuild/native-image-root/lib/*                         $out/jre/lib/           || true # ignore "same file" error when dereferencing symlinks
        cp -vp   $MX_ALT_OUTPUT_ROOT/truffle/linux-amd64/truffle-nfi-native/bin/*     $out/jre/lib/amd64/
        cp -vp   $MX_ALT_OUTPUT_ROOT/compiler/dists/graal-*processor*.jar             $out/jre/lib/graal/
        cp -vp   $MX_ALT_OUTPUT_ROOT/truffle/linux-amd64/truffle-nfi-native/include/* $out/jre/lib/include/
        cp -vp   $MX_ALT_OUTPUT_ROOT/compiler/dists/graal-management.jar              $out/jre/lib/jvmci/
        cp -vdpR $out/jre/lib/svm/clibraries                                          $out/jre/lib/svm/builder/
        cp -vpR  $MX_ALT_OUTPUT_ROOT/truffle/dists/*                                  $out/jre/lib/truffle/
        cp -vp   $MX_ALT_OUTPUT_ROOT/truffle/linux-amd64/truffle-nfi-native/include/* $out/jre/lib/truffle/include/
        cp -vpLR substratevm/svmbuild/native-image-root/tools/*                       $out/jre/tools/
        cp -vpR  $MX_ALT_OUTPUT_ROOT/tools/dists/chromeinspector*                     $out/jre/tools/chromeinspector/
        cp -vpR  $MX_ALT_OUTPUT_ROOT/tools/dists/truffle-profiler*                    $out/jre/tools/profiler/
        cp -vpR  $MX_ALT_OUTPUT_ROOT/truffle/linux-amd64/truffle-nfi-native/*         $out/jre/tools/truffle/
        cp -vp   $MX_ALT_OUTPUT_ROOT/truffle/dists/truffle-nfi.jar                    $out/jre/tools/truffle/builder/
  
        echo "name=GraalVM ${version}"                                              > $out/jre/lib/amd64/server/vm.properties
        echo -n "graal"                                                             > $out/jre/lib/jvmci/compiler-name
        echo -n "../truffle/truffle-api.jar:../truffle/truffle-nfi.jar"             > $out/jre/lib/jvmci/parentClassLoader.classpath
  
        install -v -m0555 -D substratevm/com.oracle.svm.driver.nativeimage            $out/jre/lib/svm/bin/native-image
        ln -s                ../lib/svm/bin/native-image                              $out/jre/bin/native-image
        ln -s                ../jre/bin/native-image                                  $out/bin/native-image
  
        # BUG workaround http://mail.openjdk.java.net/pipermail/graal-dev/2017-December/005141.html
        substituteInPlace $out/jre/lib/security/java.security \
  