pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / tools / misc / dua / default.nix
blobaed4b2d53c887b55479e8b489bdafd42fcba8a89
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , darwin
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "dua";
10   version = "2.29.2";
12   src = fetchFromGitHub {
13     owner = "Byron";
14     repo = "dua-cli";
15     rev = "v${version}";
16     hash = "sha256-tmlf5heOZ3UyFh8ZfwXXZhQO3vlSWwyvxL9/euQ2Fn4=";
17     # Remove unicode file names which leads to different checksums on HFS+
18     # vs. other filesystems because of unicode normalisation.
19     postFetch = ''
20       rm -r $out/tests/fixtures
21     '';
22   };
24   cargoHash = "sha256-bqWYXcry+mCUNgYS+7+MWfiV+u+3oZZg1o3Q6Mac+vE=";
26   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
27     darwin.apple_sdk.frameworks.Foundation
28   ];
30   doCheck = false;
32   meta = with lib; {
33     description = "Tool to conveniently learn about the disk usage of directories";
34     homepage = "https://github.com/Byron/dua-cli";
35     changelog = "https://github.com/Byron/dua-cli/blob/v${version}/CHANGELOG.md";
36     license = with licenses; [ mit ];
37     maintainers = with maintainers; [ figsoda killercup ];
38     mainProgram = "dua";
39   };