anchor.diff:  { stdenv, fetchurl, unzip, jdk, makeWrapper }:
   
   rec {
  -  gradleGen = {name, src} : stdenv.mkDerivation rec {
  -    inherit name src;
  +  gradleGen = {name, src, nativeVersion} : stdenv.mkDerivation rec {
  +    inherit name src nativeVersion;
   
       dontBuild = true;
   
  
positive.code: 
    gradle_2_14 = gradleGen rec {
      name = "gradle-2.14.1";
  
      src = fetchurl {
        url = "http://services.gradle.org/distributions/${name}-bin.zip";
  
negative.code:       let arch = if stdenv.is64bit then "amd64" else "i386"; in ''
          mkdir patching
          pushd patching
          jar xf $out/lib/gradle/lib/native-platform-linux-${arch}-${nativeVersion}.jar
          patchelf --set-rpath "${stdenv.cc.cc.lib}/lib:${stdenv.cc.cc.lib}/lib64" net/rubygrapefruit/platform/linux-${arch}/libnative-platform.so
          jar cf native-platform-linux-${arch}-${nativeVersion}.jar .
          mv native-platform-linux-${arch}-${nativeVersion}.jar $out/lib/gradle/lib/
          popd
  
          # The scanner doesn't pick up the runtime dependency in the jar.
  