2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2018-04-18 22:11:28 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-03-07 00:33:57 +01:00
|
|
|
pname = "du-dust";
|
2021-08-05 12:33:09 +02:00
|
|
|
version = "0.6.2";
|
2018-04-18 22:11:28 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bootandy";
|
|
|
|
repo = "dust";
|
|
|
|
rev = "v${version}";
|
2021-08-05 12:33:09 +02:00
|
|
|
sha256 = "sha256-5GhoL3by4sXhFJrNZi/UlERBa+s2oqDVVJODY0kdfxI=";
|
2020-02-20 00:18:18 +01:00
|
|
|
# Remove unicode file names which leads to different checksums on HFS+
|
|
|
|
# vs. other filesystems because of unicode normalisation.
|
|
|
|
extraPostFetch = ''
|
2021-02-12 04:22:05 +01:00
|
|
|
rm -r $out/tests/test_dir_unicode/
|
2020-02-20 00:18:18 +01:00
|
|
|
'';
|
2018-04-18 22:11:28 +02:00
|
|
|
};
|
|
|
|
|
2021-08-05 12:33:09 +02:00
|
|
|
cargoSha256 = "sha256-cgH3jrZPGUHiBDeJ9qj80dU+Vbz+wHMOsCaGAvJY6mg=";
|
2018-04-18 22:11:28 +02:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-04-18 22:11:28 +02:00
|
|
|
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;
|
2021-02-12 04:22:05 +01:00
|
|
|
maintainers = with maintainers; [ infinisil SuperSandro2000 ];
|
2021-07-18 15:24:03 +02:00
|
|
|
mainProgram = "dust";
|
2018-04-18 22:11:28 +02:00
|
|
|
};
|
|
|
|
}
|