Skip to content

Commit 801314e

Browse files
authored
ncdu_1: 1.18.1 -> 1.22 (#404104)
2 parents b6fffc5 + f5871d0 commit 801314e

File tree

1 file changed

+16
-9
lines changed
  • pkgs/tools/misc/ncdu

1 file changed

+16
-9
lines changed

pkgs/tools/misc/ncdu/1.nix

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,33 @@
22
lib,
33
stdenv,
44
fetchurl,
5+
pkg-config,
56
ncurses,
7+
versionCheckHook,
68
}:
79

8-
stdenv.mkDerivation rec {
10+
stdenv.mkDerivation (finalAttrs: {
911
pname = "ncdu";
10-
version = "1.18.1";
12+
version = "1.22";
1113

1214
src = fetchurl {
13-
url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
14-
sha256 = "sha256-fA+h6ynYWq7UuhdBZL27jwEbXDkNAXxX1mj8cjEzJAU=";
15+
url = "https://dev.yorhel.nl/download/ncdu-${finalAttrs.version}.tar.gz";
16+
sha256 = "sha256-CtbAltwE1RIFgRBHYMAbj06X1BkdbJ73llT6PGkaF2s=";
1517
};
1618

19+
nativeBuildInputs = [ pkg-config ];
20+
1721
buildInputs = [ ncurses ];
1822

19-
meta = with lib; {
23+
nativeInstallCheckInputs = [ versionCheckHook ];
24+
doInstallCheck = true;
25+
26+
meta = {
2027
description = "Disk usage analyzer with an ncurses interface";
2128
homepage = "https://dev.yorhel.nl/ncdu";
22-
license = licenses.mit;
23-
platforms = platforms.all;
24-
maintainers = with maintainers; [ pSub ];
29+
license = lib.licenses.mit;
30+
platforms = lib.platforms.all;
31+
maintainers = with lib.maintainers; [ pSub ];
2532
mainProgram = "ncdu";
2633
};
27-
}
34+
})

0 commit comments

Comments
 (0)