1{ fetchurl, lib, stdenv }:
2
3stdenv.mkDerivation rec {
4 pname = "diffstat";
5 version = "1.65";
6
7 src = fetchurl {
8 urls = [
9 "ftp://ftp.invisible-island.net/diffstat/diffstat-${version}.tgz"
10 "https://invisible-mirror.net/archives/diffstat/diffstat-${version}.tgz"
11 ];
12 sha256 = "sha256-jPJ0JJJt682FkhdVw5FVWSiCRL0QP2LXQNxrg7VXooo=";
13 };
14
15 meta = with lib; {
16 description = "Read output of diff and display a histogram of the changes";
17 longDescription = ''
18 diffstat reads the output of diff and displays a histogram of the
19 insertions, deletions, and modifications per-file. It is useful for
20 reviewing large, complex patch files.
21 '';
22 homepage = "https://invisible-island.net/diffstat/";
23 license = licenses.mit;
24 platforms = platforms.unix;
25 maintainers = [ maintainers.bjornfor ];
26 };
27}