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

30 lines
833 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform }:
2018-04-18 20:11:28 +00:00
rustPlatform.buildRustPackage rec {
pname = "du-dust";
2021-01-18 15:04:04 +00:00
version = "0.5.4";
2018-04-18 20:11:28 +00:00
src = fetchFromGitHub {
owner = "bootandy";
repo = "dust";
rev = "v${version}";
2021-02-12 03:22:05 +00:00
sha256 = "1knl7kwngmq598bnlvlq9x8sqp914sv1abfm55kw9f7mja2d6pw0";
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 = ''
2021-02-12 03:22:05 +00:00
rm -r $out/tests/test_dir_unicode/
2020-02-19 23:18:18 +00:00
'';
2018-04-18 20:11:28 +00:00
};
2021-01-18 15:04:04 +00:00
cargoSha256 = "sha256-DVcjczH7i+R2xs9pEaek4zHYHO90G7fVF7yFUPCWLmU=";
2018-04-18 20:11:28 +00:00
doCheck = false;
meta = with lib; {
2018-04-18 20:11:28 +00:00
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;
2021-02-12 03:22:05 +00:00
maintainers = with maintainers; [ infinisil SuperSandro2000 ];
2018-04-18 20:11:28 +00:00
};
}