ncdu_1: 1.18.1 -> 1.22 (#404104)

Changed files
+16 -9
pkgs
tools
misc
ncdu
+16 -9
pkgs/tools/misc/ncdu/1.nix
···
lib,
stdenv,
fetchurl,
+
pkg-config,
ncurses,
+
versionCheckHook,
}:
-
stdenv.mkDerivation rec {
+
stdenv.mkDerivation (finalAttrs: {
pname = "ncdu";
-
version = "1.18.1";
+
version = "1.22";
src = fetchurl {
-
url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
-
sha256 = "sha256-fA+h6ynYWq7UuhdBZL27jwEbXDkNAXxX1mj8cjEzJAU=";
+
url = "https://dev.yorhel.nl/download/ncdu-${finalAttrs.version}.tar.gz";
+
sha256 = "sha256-CtbAltwE1RIFgRBHYMAbj06X1BkdbJ73llT6PGkaF2s=";
};
+
nativeBuildInputs = [ pkg-config ];
+
buildInputs = [ ncurses ];
-
meta = with lib; {
+
nativeInstallCheckInputs = [ versionCheckHook ];
+
doInstallCheck = true;
+
+
meta = {
description = "Disk usage analyzer with an ncurses interface";
homepage = "https://dev.yorhel.nl/ncdu";
-
license = licenses.mit;
-
platforms = platforms.all;
-
maintainers = with maintainers; [ pSub ];
+
license = lib.licenses.mit;
+
platforms = lib.platforms.all;
+
maintainers = with lib.maintainers; [ pSub ];
mainProgram = "ncdu";
};
-
}
+
})