2018-12-24 19:15:40 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2018-11-11 23:05:53 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "diskus";
|
2019-09-21 16:15:08 +00:00
|
|
|
version = "0.6.0";
|
2018-11-11 23:05:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sharkdp";
|
|
|
|
repo = "diskus";
|
2018-11-25 14:30:43 +00:00
|
|
|
rev = "v${version}";
|
2019-09-21 16:15:08 +00:00
|
|
|
sha256 = "087w58q5kd3r23a9qnhqgvq4vhv69b5a6a7n3kh09g5cjszy8s05";
|
2018-11-11 23:05:53 +00:00
|
|
|
};
|
|
|
|
|
2018-12-24 19:15:40 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2019-09-21 16:15:08 +00:00
|
|
|
cargoSha256 = "07wsl1vw2aimgmrlri03pfcxv13klqxyvmmsbzgnq9sc9qzzy8gp";
|
2018-11-11 23:05:53 +00:00
|
|
|
|
|
|
|
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 ];
|
2018-12-24 19:15:40 +00:00
|
|
|
platforms = platforms.unix;
|
2019-09-21 16:15:08 +00:00
|
|
|
longDescription = ''
|
|
|
|
diskus is a very simple program that computes the total size of the
|
|
|
|
current directory. It is a parallelized version of du -sh.
|
|
|
|
'';
|
2018-11-11 23:05:53 +00:00
|
|
|
};
|
|
|
|
}
|