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

30 lines
814 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, rustPlatform }:
2018-04-18 20:11:28 +00:00
rustPlatform.buildRustPackage rec {
pname = "du-dust";
2020-08-10 06:07:01 +00:00
version = "0.5.2";
2018-04-18 20:11:28 +00:00
src = fetchFromGitHub {
owner = "bootandy";
repo = "dust";
rev = "v${version}";
2020-08-10 06:07:01 +00:00
sha256 = "181xlm0zj9pb73ijwf202kwwm2jji0m11ynsbaxl44alva3xpvmk";
2020-02-19 23:18:18 +00:00
# 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 20:11:28 +00:00
};
2020-08-10 06:07:01 +00:00
cargoSha256 = "1ypphm9n6wri5f03fj65i5p6lb11qj5zp8ddvybanaypv5llkfcb";
2018-04-18 20:11:28 +00:00
doCheck = false;
meta = with stdenv.lib; {
description = "du + rust = dust. Like du but more intuitive";
2020-02-19 23:18:18 +00:00
homepage = "https://github.com/bootandy/dust";
2018-04-18 20:11:28 +00:00
license = licenses.asl20;
maintainers = [ maintainers.infinisil ];
};
}