about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/ncdu/default.nix
blob: 3cb407756f67c4455d09c26cafc9aeca4cad73d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib
, stdenv
, fetchurl
, ncurses
, zigHook
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "ncdu";
  version = "2.2.2";

  src = fetchurl {
    url = "https://dev.yorhel.nl/download/ncdu-${finalAttrs.version}.tar.gz";
    hash = "sha256-kNkgAk51Ixi0aXds5X4Ds8cC1JMprZglruqzbDur+ZM=";
  };

  nativeBuildInputs = [
    zigHook
  ];

  buildInputs = [
    ncurses
  ];

  meta = {
    homepage = "https://dev.yorhel.nl/ncdu";
    description = "Disk usage analyzer with an ncurses interface";
    changelog = "https://dev.yorhel.nl/ncdu/changes2";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ pSub rodrgz ];
    inherit (zigHook.meta) platforms;
  };
})