nixpkgs/pkgs/tools/misc/ncdu/default.nix
Anderson Torres 29b89132fb ncdu: use zigHook
Also, a cosmetic refactor:

- Reorder parameter listing
- Use rec-less, overlay-style overridable recursive attributes (in effect since
NixOS#119942);
- Remove nested with (according to
https://nix.dev/recipes/best-practices#with-scopes)
- Add `meta.changelog`
2023-08-05 11:10:50 +00:00

34 lines
685 B
Nix

{ lib
, stdenv
, fetchurl
, ncurses
, zigHook
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ncdu";
version = "2.2.2";
src = fetchurl {
url = "https://dev.yorhel.nl/download/ncdu-${finalAttrs.version}.tar.gz";
hash = "sha256-kNkgAk51Ixi0aXds5X4Ds8cC1JMprZglruqzbDur+ZM=";
};
nativeBuildInputs = [
zigHook
];
buildInputs = [
ncurses
];
meta = {
homepage = "https://dev.yorhel.nl/ncdu";
description = "Disk usage analyzer with an ncurses interface";
changelog = "https://dev.yorhel.nl/ncdu/changes2";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pSub rodrgz ];
inherit (zigHook.meta) platforms;
};
})