nixpkgs/pkgs/tools/misc/ncdu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
696 B
Nix
Raw Normal View History

2022-07-21 05:45:49 +01:00
{ lib, stdenv, fetchurl, zig, ncurses }:
stdenv.mkDerivation rec {
pname = "ncdu";
2022-07-21 05:45:49 +01:00
version = "2.1.2";
src = fetchurl {
url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
2022-07-21 05:45:49 +01:00
sha256 = "sha256-ng1u8DYYo8MWcmv0khe37+Rc7HWLLJF86JLe10Myxtw=";
};
2022-07-21 05:45:49 +01:00
XDG_CACHE_HOME="Cache"; # FIXME This should be set in stdenv
nativeBuildInputs = [
zig
];
buildInputs = [ ncurses ];
2022-07-21 05:45:49 +01:00
PREFIX = placeholder "out";
meta = with lib; {
2019-02-05 07:39:57 +00:00
description = "Disk usage analyzer with an ncurses interface";
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 ];
};
}