nixpkgs/pkgs/tools/misc/diskus/default.nix
Benjamin Hipple bb8d5b8ac7 diskus: upgrade cargo fetcher and cargoSha256
Infra upgrade as part of #79975; no functional change expected.
2020-02-27 23:59:47 -05:00

30 lines
893 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "diskus";
version = "0.6.0";
src = fetchFromGitHub {
owner = "sharkdp";
repo = "diskus";
rev = "v${version}";
sha256 = "087w58q5kd3r23a9qnhqgvq4vhv69b5a6a7n3kh09g5cjszy8s05";
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
cargoSha256 = "0bivmjn7h4lfp5azbc6q0xiqq3fk68jdd4kwrwgbxiljg4xd2qy8";
meta = with stdenv.lib; {
description = "A 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.
'';
};
}