nixpkgs/pkgs/tools/misc/duf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
644 B
Nix
Raw Normal View History

2020-09-22 05:57:28 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "duf";
2022-02-08 11:04:25 +00:00
version = "0.8.1";
2020-09-22 05:57:28 +00:00
src = fetchFromGitHub {
owner = "muesli";
repo = "duf";
rev = "v${version}";
2022-02-08 11:04:25 +00:00
sha256 = "sha256-bVuqX88KY+ky+fd1FU9GWP78jQc4fRDk9yRSeIesHyI=";
2020-09-22 05:57:28 +00:00
};
2022-02-08 11:04:25 +00:00
vendorSha256 = "sha256-oihi7E67VQmym9U1gdD802AYxWRrSowhzBiKg0CBDPc=";
2020-10-13 00:22:05 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
2020-09-22 05:57:28 +00: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;
maintainers = with maintainers; [ penguwin SuperSandro2000 ];
2020-09-22 05:57:28 +00:00
};
}