2020-09-22 06:57:28 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "duf";
|
2022-01-08 17:49:51 +00:00
|
|
|
version = "0.7.0";
|
2020-09-22 06:57:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "muesli";
|
|
|
|
repo = "duf";
|
|
|
|
rev = "v${version}";
|
2022-01-08 17:49:51 +00:00
|
|
|
sha256 = "sha256-Usdu7f3XPTIT39H23vfP0XBlvNPgPA+3BMyOzFOyLHQ=";
|
2020-09-22 06:57:28 +01:00
|
|
|
};
|
|
|
|
|
2022-01-08 17:49:51 +00:00
|
|
|
vendorSha256 = "sha256-6PV/v+rk63FIR2M0Q7EzqjVvWIwHtK6TQpEYxkXLQ50=";
|
2020-10-13 01:22:05 +01:00
|
|
|
|
2021-08-26 07:45:51 +01:00
|
|
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
2020-09-22 06:57:28 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/muesli/duf/";
|
|
|
|
description = "Disk Usage/Free Utility";
|
|
|
|
license = licenses.mit;
|
2020-12-20 17:47:42 +00:00
|
|
|
platforms = platforms.unix;
|
2021-02-05 11:05:17 +00:00
|
|
|
maintainers = with maintainers; [ petabyteboy penguwin SuperSandro2000 ];
|
2020-09-22 06:57:28 +01:00
|
|
|
};
|
|
|
|
}
|