1 { lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, Foundation }:
3 rustPlatform.buildRustPackage rec {
7 buildInputs = lib.optionals stdenv.isDarwin [ libiconv Foundation ];
9 src = fetchFromGitHub {
13 sha256 = "sha256-8WXby+b5bZEylAmgONTHsKCDl9W9KCCk76utZUd9CuA=";
14 # Remove unicode file names which leads to different checksums on HFS+
15 # vs. other filesystems because of unicode normalisation.
17 rm -r $out/tests/fixtures
21 cargoSha256 = "sha256-NHPlBZhZoZHASQ3BaYfH+sLyWKYmCsAwwd7ENI0bIFo=";
26 description = "A tool to conveniently learn about the disk usage of directories, fast!";
27 homepage = "https://github.com/Byron/dua-cli";
28 changelog = "https://github.com/Byron/dua-cli/raw/v${version}/CHANGELOG.md";
29 license = with licenses; [ mit ];
30 maintainers = with maintainers; [ killercup ];