2022-08-12 12:06:08 +00:00
|
|
|
{ lib, stdenv, fetchurl, zig, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ncdu";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-kNkgAk51Ixi0aXds5X4Ds8cC1JMprZglruqzbDur+ZM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
XDG_CACHE_HOME="Cache"; # FIXME This should be set in stdenv
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
zig
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
PREFIX = placeholder "out";
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
# Avoid CPU feature impurity, see https://github.com/NixOS/nixpkgs/issues/169461
|
|
|
|
ZIG_FLAGS = "-Drelease-safe -Dcpu=baseline";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Disk usage analyzer with an ncurses interface";
|
|
|
|
homepage = "https://dev.yorhel.nl/ncdu";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with maintainers; [ pSub SuperSandro2000 rodrgz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|