1{
2 fetchurl,
3 lib,
4 stdenv,
5 zstd,
6 directoryListingUpdater,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "diffstat";
11 version = "1.68";
12
13 src = fetchurl {
14 urls = [
15 "ftp://ftp.invisible-island.net/diffstat/diffstat-${version}.tgz"
16 "https://invisible-mirror.net/archives/diffstat/diffstat-${version}.tgz"
17 ];
18 hash = "sha256-ifkpSorHT8728bmsQI9D6+340gjj7+C5m0rMFtxlgsc=";
19 };
20
21 buildInputs = [ zstd ];
22
23 passthru.updateScript = directoryListingUpdater {
24 url = "https://invisible-island.net/archives/diffstat/";
25 };
26
27 meta = with lib; {
28 description = "Read output of diff and display a histogram of the changes";
29 mainProgram = "diffstat";
30 longDescription = ''
31 diffstat reads the output of diff and displays a histogram of the
32 insertions, deletions, and modifications per-file. It is useful for
33 reviewing large, complex patch files.
34 '';
35 homepage = "https://invisible-island.net/diffstat/";
36 license = licenses.mit;
37 platforms = platforms.unix;
38 maintainers = [ maintainers.bjornfor ];
39 };
40}