BefatorNix/ant.nix
2025-09-05 17:38:49 +02:00

34 lines
955 B
Nix

{stdenv, fetchzip, jdk8, junit, breakpointHook}: stdenv.mkDerivation rec {
pname = "ant";
version = "1.7.0";
src = fetchzip {
url = "https://archive.apache.org/dist/ant/source/apache-ant-1.7.0-src.tar.gz";
hash = "sha256-IFAA0jVdnK5a6ElnPd8K24N4i2XyvlhfPmJlu2wrPgM=";
};
#patches = [./mysql.patch];
nativeBuildInputs = [jdk8];
buildInputs = [breakpointHook];
#buildInputs = [autoreconfHook ncurses breakpointHook];
#env = {
# ACLOCAL_PATH="${libtool}/share/aclocal";
# NIX_CFLAGS_COMPILE="-fpermissive";
#};
buildPhase = ''
#cp ${junit}/junit-4.1.jar ./lib/junit.jar
export CLASSPATH="${junit}/junit-4.1.jar"
./build.sh
#bash ./gradlew build
#bash ./gradlew install -Pgradle_installPath=$out
'';
#configureFlags = ["--with-plugins=innobase"];
#postInstall = ''
# ln -s $out/libexec/mysqld $out/bin/mysqld
#'';
}