1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/dua/default.nix

31 lines
871 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "dua";
2020-04-09 03:34:18 +01:00
version = "2.5.0";
src = fetchFromGitHub {
owner = "Byron";
repo = "dua-cli";
rev = "v${version}";
2020-04-09 03:34:18 +01:00
sha256 = "1r94fcygp9mmg457dkksx3mjdxfddzfzl6n0rmxasiinsz0hak4c";
2020-02-22 08:18:10 +00:00
# Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation.
extraPostFetch = ''
rm -r $out/tests/fixtures
'';
};
2020-04-09 03:34:18 +01:00
cargoSha256 = "15a4hari3my59xvmkll2jlvb1jyf8gg8alp91nvh3bagpajpvdx6";
2020-02-22 08:18:10 +00:00
doCheck = false;
meta = with lib; {
description = "A tool to conveniently learn about the disk usage of directories, fast!";
homepage = "https://github.com/Byron/dua-cli";
license = with licenses; [ mit ];
maintainers = with maintainers; [ killercup ];
platforms = platforms.all;
};
}