2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, 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-01-18 16:04:04 +01:00
|
|
|
version = "0.5.4";
|
2018-04-18 22:11:28 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bootandy";
|
|
|
|
repo = "dust";
|
|
|
|
rev = "v${version}";
|
2021-01-18 16:04:04 +01:00
|
|
|
sha256 = "sha256-JwGa1icwV1yqxy90Psd9bzM7VzM7HPA6kONkI3Y745Q=";
|
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 = ''
|
|
|
|
rm -rf $out/src/test_dir3/
|
|
|
|
'';
|
2018-04-18 22:11:28 +02:00
|
|
|
};
|
|
|
|
|
2021-01-18 16:04:04 +01:00
|
|
|
cargoSha256 = "sha256-DVcjczH7i+R2xs9pEaek4zHYHO90G7fVF7yFUPCWLmU=";
|
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;
|
|
|
|
maintainers = [ maintainers.infinisil ];
|
|
|
|
};
|
|
|
|
}
|