From d5845527960ef61b02b25d3596f6d4ea1a6dbd6a Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 26 Nov 2024 06:52:18 +0000 Subject: [PATCH] diffstat: add a trivial updater --- pkgs/by-name/di/diffstat/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/di/diffstat/package.nix b/pkgs/by-name/di/diffstat/package.nix index a853c2b3d43c..aafe1ad1e918 100644 --- a/pkgs/by-name/di/diffstat/package.nix +++ b/pkgs/by-name/di/diffstat/package.nix @@ -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";