2022-07-21 04:45:49 +00:00
|
|
|
{ lib, stdenv, fetchurl, zig, ncurses }:
|
2012-08-22 07:59:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ncdu";
|
2023-01-28 15:01:44 +00:00
|
|
|
version = "2.2.2";
|
2012-08-22 07:59:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
|
2023-01-28 15:01:44 +00:00
|
|
|
hash = "sha256-kNkgAk51Ixi0aXds5X4Ds8cC1JMprZglruqzbDur+ZM=";
|
2012-08-22 07:59:01 +00:00
|
|
|
};
|
|
|
|
|
2022-07-21 04:45:49 +00:00
|
|
|
XDG_CACHE_HOME="Cache"; # FIXME This should be set in stdenv
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
zig
|
|
|
|
];
|
|
|
|
|
2012-08-22 07:59:01 +00:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2022-07-21 04:45:49 +00:00
|
|
|
PREFIX = placeholder "out";
|
|
|
|
|
2022-10-21 09:24:12 +00:00
|
|
|
# Avoid CPU feature impurity, see https://github.com/NixOS/nixpkgs/issues/169461
|
|
|
|
ZIG_FLAGS = "-Drelease-safe -Dcpu=baseline";
|
|
|
|
|
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 01:11:51 +00:00
|
|
|
homepage = "https://dev.yorhel.nl/ncdu";
|
2015-05-29 18:55:59 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2023-01-28 15:01:44 +00:00
|
|
|
maintainers = with maintainers; [ pSub SuperSandro2000 rodrgz ];
|
2012-08-22 07:59:01 +00:00
|
|
|
};
|
|
|
|
}
|