mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-14 16:14:50 +00:00
![Anderson Torres](/assets/img/avatar_default.png)
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`
34 lines
685 B
Nix
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;
|
|
};
|
|
})
|