anchor.diff:    buildPhase = "ant build";
   
     installPhase = ''
  -    mkdir -pv "$out/lib/java"
  -    cp -v *.jar "$out/lib/java"
  +    mkdir -pv $out/lib/java
  +    cp -v *.jar $out/lib/java
   
  -    mkdir -pv "$out/bin"
  -    cat > "$out/bin/ecj" <<EOF
  -#! /bin/sh
  -exec "$(type -P ${javaExec})" ${javaFlags} "$out/lib/java/ecj.jar" org.eclipse.jdt.internal.compiler.batch.Main \$@
  -EOF
  +    mkdir -pv $out/bin
  +    cat > $out/bin/ecj <<EOF
  +    #! /bin/sh
  +    exec ${jdk.jre}/bin/java -cp $out/lib/java/ecj.jar org.eclipse.jdt.internal.compiler.batch.Main "\$@"
  +    EOF
   
  -    chmod u+x "$out/bin/ecj"
  +    chmod u+x $out/bin/ecj
     '';
   
     meta = {
  
positive.code:     sha256 = "0swyysbyfmv068x8q1c5jqpwk5zb4xahg17aypx5rwb660f8fpbm";
    };
  
    buildInputs = [ unzip ant gcj ];
  
    unpackPhase = ''
      mkdir "${name}"
  
negative.code: { stdenv, fetchurl, unzip, ant, jdk }:
  
  let
    version = "3.7.2";
    date    = "201202080800";
  in
  
  stdenv.mkDerivation rec {
  