nixpkgs/pkgs/tools/misc/ncdu_2/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-04-28 18:22:32 +00:00
{ lib, stdenv, fetchurl, zig, ncurses }:
2021-12-26 00:38:11 +00:00
stdenv.mkDerivation rec {
pname = "ncdu";
2022-04-28 18:22:32 +00:00
version = "2.1.2";
2021-12-26 00:38:11 +00:00
src = fetchurl {
url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
2022-04-28 18:22:32 +00:00
sha256 = "sha256-ng1u8DYYo8MWcmv0khe37+Rc7HWLLJF86JLe10Myxtw=";
2021-12-26 00:38:11 +00:00
};
XDG_CACHE_HOME="Cache"; # FIXME This should be set in stdenv
nativeBuildInputs = [
zig
];
buildInputs = [ ncurses ];
PREFIX = placeholder "out";
meta = with lib; {
description = "Disk usage analyzer with an ncurses interface";
homepage = "https://dev.yorhel.nl/ncdu";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ pSub SuperSandro2000 ];
};
}