ant: add update script

Currently only updates the main ant
package (and not the ant-contrib part
included in this derivation).
This commit is contained in:
Tomodachi94 2024-11-03 08:14:16 +00:00
parent b71a8b49f5
commit b43cf9aaba

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 = "Java-based build tool";