2022-07-21 05:45:49 +01:00
|
|
|
{ lib, stdenv, fetchurl, zig, ncurses }:
|
2012-08-22 08:59:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ncdu";
|
2022-07-21 05:45:49 +01:00
|
|
|
version = "2.1.2";
|
2012-08-22 08:59:01 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
|
2022-07-21 05:45:49 +01:00
|
|
|
sha256 = "sha256-ng1u8DYYo8MWcmv0khe37+Rc7HWLLJF86JLe10Myxtw=";
|
2012-08-22 08:59:01 +01:00
|
|
|
};
|
|
|
|
|
2022-07-21 05:45:49 +01:00
|
|
|
XDG_CACHE_HOME="Cache"; # FIXME This should be set in stdenv
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
zig
|
|
|
|
];
|
|
|
|
|
2012-08-22 08:59:01 +01:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2022-07-21 05:45:49 +01:00
|
|
|
PREFIX = placeholder "out";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-02-05 07:39:57 +00:00
|
|
|
description = "Disk usage analyzer with an ncurses interface";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://dev.yorhel.nl/ncdu";
|
2015-05-29 19:55:59 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2021-06-18 09:55:01 +01:00
|
|
|
maintainers = with maintainers; [ pSub SuperSandro2000 ];
|
2012-08-22 08:59:01 +01:00
|
|
|
};
|
|
|
|
}
|