2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
2018-04-18 21:11:28 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-03-06 23:33:57 +00:00
|
|
|
pname = "du-dust";
|
2020-09-04 12:51:46 +01:00
|
|
|
version = "0.5.3";
|
2018-04-18 21:11:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bootandy";
|
|
|
|
repo = "dust";
|
|
|
|
rev = "v${version}";
|
2020-09-04 12:51:46 +01:00
|
|
|
sha256 = "1rcbxqcxr8v5faa52psjsjjlnkia5cwc3b1cwka9f5cxwhdwg7hr";
|
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 21:11:28 +01:00
|
|
|
};
|
|
|
|
|
2020-09-04 12:51:46 +01:00
|
|
|
cargoSha256 = "1q15xy15hk6r3sai9wry2jm57dhinx6r84yxg9fwvq354613k645";
|
2018-04-18 21:11:28 +01: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 21:11:28 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.infinisil ];
|
|
|
|
};
|
|
|
|
}
|