nixpkgs-suyu/pkgs/tools/misc/dutree/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
796 B
Nix
Raw Normal View History

2021-08-26 00:05:40 +02:00
{ fetchFromGitHub, lib, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "dutree";
version = "0.2.18";
src = fetchFromGitHub {
owner = "nachoparker";
repo = pname;
rev = "v${version}";
2021-08-27 22:59:36 +02:00
sha256 = "17lm8jd07bi499mywg2iq669im34j4x4yhc8a3adxn12f8j0dfg7";
# test directory has files with unicode names which causes hash mismatches
# It is also not used by any tests or parts of build process
2022-05-17 21:10:33 +02:00
postFetch = ''
2021-08-27 22:59:36 +02:00
rm -r $out/test
'';
2021-08-26 00:05:40 +02:00
};
cargoSha256 = "0gg1w0xx36aswfm0y53nqwwz7zds25ysmklbrc8v2r91j74bhkzw";
meta = with lib; {
description = "A tool to analyze file system usage written in Rust";
homepage = "https://github.com/nachoparker/dutree";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ figsoda ];
};
}