python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / dua / default.nix
blobfb89e91c1044a32ead3011bc1c64fab6c3fb2ecf
1 { lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, Foundation }:
3 rustPlatform.buildRustPackage rec {
4   pname = "dua";
5   version = "2.18.0";
7   buildInputs = lib.optionals stdenv.isDarwin [ libiconv Foundation ];
9   src = fetchFromGitHub {
10     owner = "Byron";
11     repo = "dua-cli";
12     rev = "v${version}";
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.
16     postFetch = ''
17       rm -r $out/tests/fixtures
18     '';
19   };
21   cargoSha256 = "sha256-NHPlBZhZoZHASQ3BaYfH+sLyWKYmCsAwwd7ENI0bIFo=";
23   doCheck = false;
25   meta = with lib; {
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 ];
31   };