mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
commit
a6b4be8775
@ -1,4 +1,5 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -6,13 +7,13 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "gdu";
|
pname = "gdu";
|
||||||
version = "4.11.1";
|
version = "4.11.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dundee";
|
owner = "dundee";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-e9TYArmNWnK8XXcniAQCegrfWAUfTKKuClgdSTQep0U=";
|
sha256 = "sha256-IrlyHYAcoRvF5CA0LMKHTb8aYSawvEcU7s+a03QYI1c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-QiO5p0x8kmIN6f0uYS0IR2MlWtRYTHeZpW6Nmupjias=";
|
vendorSha256 = "sha256-QiO5p0x8kmIN6f0uYS0IR2MlWtRYTHeZpW6Nmupjias=";
|
||||||
@ -27,21 +28,14 @@ buildGoModule rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace cmd/app/app_test.go --replace "development" "${version}"
|
substituteInPlace cmd/gdu/app/app_test.go --replace "development" "${version}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installManPage gdu.1
|
installManPage gdu.1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# tests fail with:
|
doCheck = !(stdenv.isAarch64 || stdenv.isDarwin);
|
||||||
# dir_test.go:76:
|
|
||||||
# Error Trace: dir_test.go:76
|
|
||||||
# Error: Not equal:
|
|
||||||
# expected: 0
|
|
||||||
# actual : 512
|
|
||||||
# Test: TestFlags
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Disk usage analyzer with console interface";
|
description = "Disk usage analyzer with console interface";
|
||||||
|
Loading…
Reference in New Issue
Block a user