2022-10-05 00:56:50 +02:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:
|
2020-09-22 07:57:28 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "duf";
|
2022-02-08 12:04:25 +01:00
|
|
|
version = "0.8.1";
|
2020-09-22 07:57:28 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "muesli";
|
|
|
|
repo = "duf";
|
|
|
|
rev = "v${version}";
|
2022-02-08 12:04:25 +01:00
|
|
|
sha256 = "sha256-bVuqX88KY+ky+fd1FU9GWP78jQc4fRDk9yRSeIesHyI=";
|
2020-09-22 07:57:28 +02:00
|
|
|
};
|
|
|
|
|
2023-09-13 06:44:46 +02:00
|
|
|
vendorHash = "sha256-oihi7E67VQmym9U1gdD802AYxWRrSowhzBiKg0CBDPc=";
|
2020-10-13 02:22:05 +02:00
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
2020-09-22 07:57:28 +02:00
|
|
|
|
2022-10-05 00:56:50 +02:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage duf.1
|
|
|
|
'';
|
|
|
|
|
2020-09-22 07:57:28 +02:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/muesli/duf/";
|
|
|
|
description = "Disk Usage/Free Utility";
|
|
|
|
license = licenses.mit;
|
2023-07-23 23:08:10 +02:00
|
|
|
maintainers = with maintainers; [ figsoda penguwin ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "duf";
|
2020-09-22 07:57:28 +02:00
|
|
|
};
|
|
|
|
}
|