2018-12-24 11:15:40 -08:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2018-11-11 15:05:53 -08:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 04:41:23 -07:00
|
|
|
pname = "diskus";
|
2018-11-25 06:30:43 -08:00
|
|
|
version = "0.5.0";
|
2018-11-11 15:05:53 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sharkdp";
|
|
|
|
repo = "diskus";
|
2018-11-25 06:30:43 -08:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "18scxspi5ncags8bnxq4ah9w8hrlwwlgpq7q9qfh4d81asmbyr8n";
|
2018-11-11 15:05:53 -08:00
|
|
|
};
|
|
|
|
|
2018-12-24 11:15:40 -08:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2019-05-25 04:03:08 -07:00
|
|
|
cargoSha256 = "13d4h6f3idwj2bxafqrjihgwwr8v3k158r7b569jp7q2v1msqqx1";
|
2018-11-11 15:05:53 -08: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 11:15:40 -08:00
|
|
|
platforms = platforms.unix;
|
2018-11-11 15:05:53 -08:00
|
|
|
};
|
|
|
|
}
|