3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/dust/default.nix

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

31 lines
853 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform }:
2018-04-18 21:11:28 +01:00
rustPlatform.buildRustPackage rec {
pname = "du-dust";
2022-07-15 22:45:18 +01:00
version = "0.8.1";
2018-04-18 21:11:28 +01:00
src = fetchFromGitHub {
owner = "bootandy";
repo = "dust";
rev = "v${version}";
2022-07-15 22:45:18 +01:00
sha256 = "sha256-7hhg54x8EZ3x40a8kaOUzhyHDF0CJ5dZibGVvcFF9zk=";
2020-02-19 23:18:18 +00:00
# Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation.
2022-05-17 20:10:33 +01:00
postFetch = ''
2021-02-12 03:22:05 +00:00
rm -r $out/tests/test_dir_unicode/
2020-02-19 23:18:18 +00:00
'';
2018-04-18 21:11:28 +01:00
};
2022-07-15 22:45:18 +01:00
cargoSha256 = "sha256-fbNP89xg0Di/p/y78C9kar3UKOqkAJ94rJqZOWK3Rp0=";
2018-04-18 21:11:28 +01:00
doCheck = false;
meta = with lib; {
2018-04-18 21:11:28 +01:00
description = "du + rust = dust. Like du but more intuitive";
2020-02-19 23:18:18 +00:00
homepage = "https://github.com/bootandy/dust";
2018-04-18 21:11:28 +01:00
license = licenses.asl20;
2021-02-12 03:22:05 +00:00
maintainers = with maintainers; [ infinisil SuperSandro2000 ];
2021-07-18 14:24:03 +01:00
mainProgram = "dust";
2018-04-18 21:11:28 +01:00
};
}