anchor.diff: -with (import <nixpkgs> {});
  +{ stdenv, fetchurl, fetchgit, openjdk, glibcLocales, lib }:
  +
   with lib;
   
   let
  
positive.code:         -d ${name}.jar \
          @sources
  
        ${lib.optionalString args.runTests ''
          find src/test/scala -name '*.scala' > sources-test
          scalac \
            -classpath ${name}.jar \
            -optimise \
            -d ${name}-test.jar \
            @sources-test
          scala \
            -classpath ${name}.jar:${name}-test.jar \
            org.scalacheck.TestAll
        ''}
  
        jar cf "${name}-sources.jar" LICENSE RELEASE -C src/main/scala .
  
        mkdir api && scaladoc \
          -doc-title ScalaCheck \
          -doc-version "${args.version}" \
          -doc-footer "${docFooter args.version args.rev}" \
          -doc-source-url "${docSourceUrl args.version args.rev}" \
          -classpath "$testinterface" \
          -sourcepath src/main/scala \
          -d api \
  
negative.code:       version = "2.10.3";
        sha256 = "16ac935wydrxrvijv4ldnz4vl2xk8yb3yzb9bsi3nb9sic7fxl95";
      };
      "2.10" = scala."2.10.3";
      "2.11.0-M4" = mkScala {
        version = "2.11.0-M4";
        sha256 = "15wv35nizyi50dv7ig2dscv7yapa65mp32liqvmwwhyvzx1h9pnh";
      };
    };
  
    scalacheckVersions = [
      { version = "1.10.1";
        rev = "ecb39d126f919795738e3b0bb66dc088e31ccef3";
        sha256 = "1yjvh1r2fp46wdmsajmljryp03qw92albjh07vvgd15qw3v6vz3k";
      }
      { version = "1.10.0";
        rev = "2338afc425a905fdc55b4fd67bd8bfc3358e3390";
        sha256 = "0a3kgdqpr421k624qhpan3krjdhii9fm4zna7fbbz3sk30gbcsnj";
      }
      { version = "1.9";
        rev = "ddfd03e49b05fba702539a4aff03e60ea35a57e0";
        sha256 = "1dbxp9w7pjw1zf50x3hz6kwzm8xp3hvdbswnxsrcswagvqmc5kkm";
        runTests = false;
      }
      { version = "1.8";
        rev = "f2175ed5ac20f37c1a7ec320b1c58de7a8e3c27f";
        sha256 = "0gkwnqw9wcv0p0dbc6w0i54zw9lb32qnl8qdsp3mn6ylkwj5zx0h";
      }
    ];
  
    scalacheck_all = concatMap mkScalaCheckForAllScala scalacheckVersions;
  }
  