From b43cf9aaba2834621999f74ea5b0794ad49cb43c Mon Sep 17 00:00:00 2001 From: Tomodachi94 Date: Sun, 3 Nov 2024 08:14:16 +0000 Subject: [PATCH] ant: add update script Currently only updates the main ant package (and not the ant-contrib part included in this derivation). --- pkgs/by-name/ap/apacheAnt/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ap/apacheAnt/package.nix b/pkgs/by-name/ap/apacheAnt/package.nix index 5e00d302ac4c..c29d1c4c6f62 100644 --- a/pkgs/by-name/ap/apacheAnt/package.nix +++ b/pkgs/by-name/ap/apacheAnt/package.nix @@ -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";