2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2018-11-12 00:05:53 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "diskus";
|
2021-11-14 13:00:13 +01:00
|
|
|
version = "0.7.0";
|
2018-11-12 00:05:53 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sharkdp";
|
|
|
|
repo = "diskus";
|
2018-11-25 15:30:43 +01:00
|
|
|
rev = "v${version}";
|
2021-11-14 13:00:13 +01:00
|
|
|
sha256 = "sha256-SKd2CU0F2iR4bSHntu2VKvZyjjf2XJeXJG6XS/fIBMU=";
|
2018-11-12 00:05:53 +01:00
|
|
|
};
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
2018-12-24 20:15:40 +01:00
|
|
|
|
2021-11-14 13:00:13 +01:00
|
|
|
cargoSha256 = "sha256-qNXv6Z9sKl7rol78UTOSRFML/JCGfOJMGOdt49KHD50=";
|
2018-11-12 00:05:53 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-12 00:05:53 +01:00
|
|
|
description = "A minimal, fast alternative to 'du -sh'";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/sharkdp/diskus";
|
2018-11-12 00:05:53 +01:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = [ maintainers.fuerbringer ];
|
2018-12-24 20:15:40 +01:00
|
|
|
platforms = platforms.unix;
|
2019-09-21 18:15:08 +02: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.
|
|
|
|
'';
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "diskus";
|
2018-11-12 00:05:53 +01:00
|
|
|
};
|
|
|
|
}
|