{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec { pname = "commons-logging"; version = "1.0"; outJar = "commons-logging.jar"; src = fetchFromGitHub { owner = "apache"; repo = pname; rev = "LOGGING_1_0"; hash = "sha256-szbZTjeYCHRTVutQeaz2JXb7gv3Qnva4vNqmde26uMw="; }; patches = [./commons-logging_1_0.patch]; nativeBuildInputs = [jdk6 ant_1_7]; env = { JAVA_HOME="${jdk6}"; }; buildPhase = '' touch /build/LICENSE ant dist ''; installPhase = '' mkdir $out cp -r ./dist/* $out/ ''; }