nixpkgs/pkgs/tools/misc/diskus/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

31 lines
910 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "diskus";
version = "0.7.0";
src = fetchFromGitHub {
owner = "sharkdp";
repo = "diskus";
rev = "v${version}";
sha256 = "sha256-SKd2CU0F2iR4bSHntu2VKvZyjjf2XJeXJG6XS/fIBMU=";
};
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
cargoSha256 = "sha256-qNXv6Z9sKl7rol78UTOSRFML/JCGfOJMGOdt49KHD50=";
meta = with lib; {
description = "Minimal, fast alternative to 'du -sh'";
homepage = "https://github.com/sharkdp/diskus";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = [ maintainers.fuerbringer ];
platforms = platforms.unix;
longDescription = ''
diskus is a very simple program that computes the total size of the
current directory. It is a parallelized version of du -sh.
'';
mainProgram = "diskus";
};
}