1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 18:42:15 +00:00
nixpkgs/pkgs/tools/misc/duf/default.nix

28 lines
673 B
Nix
Raw Normal View History

2020-09-22 06:57:28 +01:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "duf";
2020-11-11 03:53:37 +00:00
version = "0.5.0";
2020-09-22 06:57:28 +01:00
src = fetchFromGitHub {
owner = "muesli";
repo = "duf";
rev = "v${version}";
2020-11-11 03:53:37 +00:00
sha256 = "0n0nvrqrlr75dmf2j6ja615ighzs35cfixn7z9cwdz3vhj1xhc5f";
2020-09-22 06:57:28 +01:00
};
2020-10-13 01:22:05 +01:00
dontStrip = true;
vendorSha256 = "1jqilfsirj7bkhzywimzf98w2b4s777phb06nsw6lr3bi6nnwzr1";
buildFlagsArray = [ "-ldflags=" "-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;
2020-10-13 01:22:05 +01:00
maintainers = with maintainers; [ petabyteboy penguwin ];
2020-09-22 06:57:28 +01:00
};
}