diff --git a/doc/languages-frameworks/ant.section.md b/doc/languages-frameworks/ant.section.md index 477ded92d06538..90eb0d18efd24d 100644 --- a/doc/languages-frameworks/ant.section.md +++ b/doc/languages-frameworks/ant.section.md @@ -3,9 +3,8 @@ [Ant](https://ant.apache.org) is a build system. It is primarily used to build Java projects. -The setup hook included with the `ant` package changes `buildPhase` by default. -The `checkPhase` and `installPhase` phases can be used by setting `doCheck` -and `doInstall` to `true`, respectively. +The setup hook included with the `ant` package sets `buildPhase` and `checkPhase` +by default. ## `ant` thin wrapper {#ant-thin-wrapper} diff --git a/pkgs/applications/misc/mkgmap/splitter/default.nix b/pkgs/applications/misc/mkgmap/splitter/default.nix index c16b97f4a7e9d1..1c3212c898564a 100644 --- a/pkgs/applications/misc/mkgmap/splitter/default.nix +++ b/pkgs/applications/misc/mkgmap/splitter/default.nix @@ -57,20 +57,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ jdk ant makeWrapper stripJavaArchivesHook ]; - buildPhase = '' - runHook preBuild - ant - runHook postBuild - ''; - inherit doCheck; - checkPhase = '' - runHook preCheck - ant run.tests - ant run.func-tests - runHook postCheck - ''; + antCheckFlags = [ "run.tests" "run.func-tests" ]; installPhase = '' runHook preInstall