nixpkgs-suyu/pkgs/tools/misc/diskus/default.nix

26 lines
731 B
Nix
Raw Normal View History

2018-12-24 20:15:40 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
2018-11-12 00:05:53 +01:00
rustPlatform.buildRustPackage rec {
name = "diskus-${version}";
version = "0.5.0";
2018-11-12 00:05:53 +01:00
src = fetchFromGitHub {
owner = "sharkdp";
repo = "diskus";
rev = "v${version}";
sha256 = "18scxspi5ncags8bnxq4ah9w8hrlwwlgpq7q9qfh4d81asmbyr8n";
2018-11-12 00:05:53 +01:00
};
2018-12-24 20:15:40 +01:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
cargoSha256 = "1syrmm5qpz7d1h17xpw1wa3d2snaz9n7d1avsjp7xz8s2qcx1wdc";
2018-11-12 00:05:53 +01: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 20:15:40 +01:00
platforms = platforms.unix;
2018-11-12 00:05:53 +01:00
};
}