2020-09-25 04:45:31 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "duf";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "0.4.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "muesli";
|
|
|
|
repo = "duf";
|
|
|
|
rev = "v${version}";
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "093kir1zwpkl0jic4p1f032ir5k7kra94di2indzn0fa4j4r7a0i";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
vendorSha256 = "1jqilfsirj7bkhzywimzf98w2b4s777phb06nsw6lr3bi6nnwzr1";
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=" "-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;
|
|
|
|
platforms = platforms.linux;
|
2020-10-16 20:44:37 +00:00
|
|
|
maintainers = with maintainers; [ petabyteboy penguwin ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|