diffstat: add a trivial updater

This commit is contained in:
Sergei Trofimovich 2024-11-26 06:52:18 +00:00 committed by Bjørn Forsman
parent 5706049cf6
commit d584552796

View File

@ -1,4 +1,4 @@
{ fetchurl, lib, stdenv, zstd }:
{ fetchurl, lib, stdenv, zstd, directoryListingUpdater }:
stdenv.mkDerivation rec {
pname = "diffstat";
@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
buildInputs = [ zstd ];
passthru.updateScript = directoryListingUpdater {
url = "https://invisible-island.net/archives/diffstat/";
};
meta = with lib; {
description = "Read output of diff and display a histogram of the changes";
mainProgram = "diffstat";