nixpkgs/pkgs/tools/misc/dust/default.nix

31 lines
842 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, rustPlatform }:
2018-04-18 22:11:28 +02:00
rustPlatform.buildRustPackage rec {
2019-08-31 13:41:23 +02:00
pname = "dust";
2020-02-20 00:18:18 +01:00
version = "0.5.1";
2018-04-18 22:11:28 +02:00
src = fetchFromGitHub {
owner = "bootandy";
repo = "dust";
rev = "v${version}";
2020-02-20 00:18:18 +01:00
sha256 = "1l5fh7yl8mbgahvzfa251cyp8j5awqdl66jblz565b1wb536kig7";
# Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation.
extraPostFetch = ''
rm -rf $out/src/test_dir3/
'';
2018-04-18 22:11:28 +02:00
};
2020-02-20 00:18:18 +01:00
cargoSha256 = "1sjzcawyg1xsi4xrx2zwnj8yavzph8k1wgxsffgp55wghzypafwl";
2018-04-18 22:11:28 +02:00
doCheck = false;
meta = with stdenv.lib; {
description = "du + rust = dust. Like du but more intuitive";
2020-02-20 00:18:18 +01:00
homepage = "https://github.com/bootandy/dust";
2018-04-18 22:11:28 +02:00
license = licenses.asl20;
maintainers = [ maintainers.infinisil ];
platforms = platforms.all;
};
}