ant: add update script

Currently only updates the main ant
package (and not the ant-contrib part
included in this derivation).

(cherry picked from commit b43cf9aaba)
This commit is contained in:
Tomodachi94 2024-11-03 08:14:16 +00:00 committed by github-actions[bot]
parent a7ef40c0a1
commit bf1e0f139e

View File

@ -1,4 +1,4 @@
{ fetchurl, lib, stdenv, coreutils, makeWrapper }:
{ fetchurl, lib, stdenv, coreutils, makeWrapper, gitUpdater }:
stdenv.mkDerivation rec {
pname = "ant";
@ -78,6 +78,13 @@ stdenv.mkDerivation rec {
chmod +x $out/bin/ant
''; # */
passthru = {
updateScript = gitUpdater {
rev-prefix = "rel/";
url = "https://gitbox.apache.org/repos/asf/ant";
};
};
meta = {
homepage = "https://ant.apache.org/";
description = "A Java-based build tool";