[Backport release-24.05] ant: 1.10.11 -> 1.10.15, add update script (#356879)

This commit is contained in:
Tomodachi94 2024-11-17 22:12:50 -08:00 committed by GitHub
commit 082b0ffde5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,14 +1,14 @@
{ fetchurl, lib, stdenv, coreutils, makeWrapper }: { fetchurl, lib, stdenv, coreutils, makeWrapper, gitUpdater }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ant"; pname = "ant";
version = "1.10.11"; version = "1.10.15";
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
src = fetchurl { src = fetchurl {
url = "mirror://apache/ant/binaries/apache-ant-${version}-bin.tar.bz2"; url = "mirror://apache/ant/binaries/apache-ant-${version}-bin.tar.bz2";
sha256 = "19m8xb7h6xm4jykzb79kakbx1pa4awaglw6z31pbfg8m5pmwkipz"; hash = "sha256-h/SNGLoRwRVojDfvl1g+xv+J6mAz+J2BimckjaRxDEs=";
}; };
contrib = fetchurl { contrib = fetchurl {
@ -78,6 +78,13 @@ stdenv.mkDerivation rec {
chmod +x $out/bin/ant chmod +x $out/bin/ant
''; # */ ''; # */
passthru = {
updateScript = gitUpdater {
rev-prefix = "rel/";
url = "https://gitbox.apache.org/repos/asf/ant";
};
};
meta = { meta = {
homepage = "https://ant.apache.org/"; homepage = "https://ant.apache.org/";
description = "A Java-based build tool"; description = "A Java-based build tool";