source $stdenv/setup tar jxf $src || exit 1 mkdir -p $out mv apache-ant-*/* $out || exit 1 # add ant-contrib cp $antContrib/*.jar $out/lib # remove crap in the root directory for file in $out/* do if test -f $file ; then rm $file fi done rm -rf $out/docs # prevent the use of hacky scripts. This will be handled in Nix. rm $out/bin/* || exit 1 # add ant script. This script is to be invoked with all # appropiate variables and will try to be clever or user-friendly. cat >> $out/bin/ant <