mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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:
parent
b71a8b49f5
commit
b43cf9aaba
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user