1 { lib, stdenv, fetchurl, zig, ncurses }:
3 stdenv.mkDerivation rec {
8 url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
9 sha256 = "sha256-ng1u8DYYo8MWcmv0khe37+Rc7HWLLJF86JLe10Myxtw=";
12 XDG_CACHE_HOME="Cache"; # FIXME This should be set in stdenv
18 buildInputs = [ ncurses ];
20 PREFIX = placeholder "out";
22 # Avoid CPU feature impurity, see https://github.com/NixOS/nixpkgs/issues/169461
23 ZIG_FLAGS = "-Drelease-safe -Dcpu=baseline";
26 description = "Disk usage analyzer with an ncurses interface";
27 homepage = "https://dev.yorhel.nl/ncdu";
28 license = licenses.mit;
29 platforms = platforms.all;
30 maintainers = with maintainers; [ pSub SuperSandro2000 ];