Unverified Commit f5871d0d authored by Anton Mosich's avatar Anton Mosich
Browse files

ncdu_1: modernize

parent 1b71ecce
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -4,14 +4,15 @@
  fetchurl,
  pkg-config,
  ncurses,
  versionCheckHook,
}:

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

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

@@ -19,12 +20,15 @@ stdenv.mkDerivation rec {

  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";
  };
}
})