fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / di / diffstat / package.nix
blobe1d8a43e804b9085f3ea0d206a15a9fa4686f0c2
2   fetchurl,
3   lib,
4   stdenv,
5   zstd,
6   directoryListingUpdater,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "diffstat";
11   version = "1.67";
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-dg7QyZxtZDI41BuA5gJ4zxaD/7lKKDlUrH7xaMhSdmo=";
19   };
21   buildInputs = [ zstd ];
23   passthru.updateScript = directoryListingUpdater {
24     url = "https://invisible-island.net/archives/diffstat/";
25   };
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   };