mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
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:
parent
a7ef40c0a1
commit
bf1e0f139e
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user