Merge pull request #230148 from figsoda/dua

dua: 2.19.2 -> 2.20.1, add figsoda as a maintainer
This commit is contained in:
Weijia Wang 2023-05-06 01:04:42 +03:00 committed by GitHub
commit 14da3046ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 12 deletions

View file

@ -1,16 +1,19 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, Foundation }: { lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "dua"; pname = "dua";
version = "2.19.2"; version = "2.20.1";
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Foundation ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Byron"; owner = "Byron";
repo = "dua-cli"; repo = "dua-cli";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-A39lYXkHinvppZVm2V9HXmtcbR4jOiHRtABQeryqLG8="; hash = "sha256-yBPzf0ZpL49CupdtxjEo9QiOC5vwTcqdfAC2Q6WcNhE=";
# Remove unicode file names which leads to different checksums on HFS+ # Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation. # vs. other filesystems because of unicode normalisation.
postFetch = '' postFetch = ''
@ -18,15 +21,19 @@ rustPlatform.buildRustPackage rec {
''; '';
}; };
cargoHash = "sha256-7SrNPf1inu8zaIMErJ6zADDFkLMPvR6zCg44Vv1DarM="; cargoHash = "sha256-jgPOC8xtxYyKhYzsJezefwgopVL+1MED+Wf5h6bCYBg=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Foundation
];
doCheck = false; doCheck = false;
meta = with lib; { meta = with lib; {
description = "A tool to conveniently learn about the disk usage of directories, fast!"; description = "A tool to conveniently learn about the disk usage of directories";
homepage = "https://github.com/Byron/dua-cli"; homepage = "https://github.com/Byron/dua-cli";
changelog = "https://github.com/Byron/dua-cli/raw/v${version}/CHANGELOG.md"; changelog = "https://github.com/Byron/dua-cli/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ killercup ]; maintainers = with maintainers; [ figsoda killercup ];
}; };
} }

View file

@ -4614,9 +4614,7 @@ with pkgs;
dtrx = callPackage ../tools/compression/dtrx { }; dtrx = callPackage ../tools/compression/dtrx { };
dua = callPackage ../tools/misc/dua { dua = callPackage ../tools/misc/dua { };
inherit (darwin.apple_sdk.frameworks) Foundation;
};
duf = callPackage ../tools/misc/duf { }; duf = callPackage ../tools/misc/duf { };