lol
1{ fetchFromGitHub, lib, rustPlatform }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "dutree";
5 version = "0.2.18";
6
7 src = fetchFromGitHub {
8 owner = "nachoparker";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "17lm8jd07bi499mywg2iq669im34j4x4yhc8a3adxn12f8j0dfg7";
12 # test directory has files with unicode names which causes hash mismatches
13 # It is also not used by any tests or parts of build process
14 postFetch = ''
15 rm -r $out/test
16 '';
17 };
18
19 cargoSha256 = "0gg1w0xx36aswfm0y53nqwwz7zds25ysmklbrc8v2r91j74bhkzw";
20
21 meta = with lib; {
22 description = "A tool to analyze file system usage written in Rust";
23 homepage = "https://github.com/nachoparker/dutree";
24 license = licenses.gpl3Plus;
25 maintainers = with maintainers; [ figsoda ];
26 };
27}