2020-09-25 04:45:31 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "duf";
|
2021-04-05 15:23:46 +00:00
|
|
|
version = "0.6.2";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "muesli";
|
|
|
|
repo = "duf";
|
|
|
|
rev = "v${version}";
|
2021-04-05 15:23:46 +00:00
|
|
|
sha256 = "sha256-aRXm31sGHvHPpqPck5+jplbWT52OzaiQIgU/C7llJs8=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
vendorSha256 = "153z0ccd556c0wpnxgyjq7m0c4y2z6fxsqq2p77kly9nr8cpzdb9";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/muesli/duf/";
|
|
|
|
description = "Disk Usage/Free Utility";
|
|
|
|
license = licenses.mit;
|
2020-12-25 13:55:36 +00:00
|
|
|
platforms = platforms.unix;
|
2021-02-13 14:23:35 +00:00
|
|
|
maintainers = with maintainers; [ petabyteboy penguwin SuperSandro2000 ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|