Loading pkgs/by-name/gd/gdu/package.nix +15 −12 Original line number Diff line number Diff line Loading @@ -4,34 +4,36 @@ buildGoModule, fetchFromGitHub, installShellFiles, testers, gdu, versionCheckHook, }: buildGoModule rec { buildGoModule (finalAttrs: { pname = "gdu"; version = "5.30.1"; version = "5.31.0"; src = fetchFromGitHub { owner = "dundee"; repo = "gdu"; tag = "v${version}"; hash = "sha256-3SymmE3J+lphyRKTQ+sLsnXaBvLyjJRlwpy79U4+t5o="; tag = "v${finalAttrs.version}"; hash = "sha256-MAkD4Mh7aXWc8Y4TkXH7NSDgPQugB7Gjhr4nfOr/X1U="; }; vendorHash = "sha256-aKhHC3sPRyi/l9BxeUgx+3TdYulb0cI9WxuPvbLoswg="; nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles versionCheckHook ]; ldflags = [ "-s" "-w" "-X=github.com/dundee/gdu/v${lib.versions.major version}/build.Version=${version}" "-X=github.com/dundee/gdu/v${lib.versions.major finalAttrs.version}/build.Version=${finalAttrs.version}" ]; postPatch = '' substituteInPlace cmd/gdu/app/app_test.go \ --replace-fail "development" "${version}" --replace-fail "development" "${finalAttrs.version}" ''; postInstall = '' Loading @@ -43,9 +45,10 @@ buildGoModule rec { checkFlags = [ # https://github.com/dundee/gdu/issues/371 "-skip=TestStoredAnalyzer" "-skip=TestAnalyzePathWithIgnoring" ]; passthru.tests.version = testers.testVersion { package = gdu; }; doInstallCheck = true; meta = { description = "Disk usage analyzer with console interface"; Loading @@ -55,7 +58,7 @@ buildGoModule rec { the performance gain is not so huge. ''; homepage = "https://github.com/dundee/gdu"; changelog = "https://github.com/dundee/gdu/releases/tag/v${version}"; changelog = "https://github.com/dundee/gdu/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fab Loading @@ -63,4 +66,4 @@ buildGoModule rec { ]; mainProgram = "gdu"; }; } }) Loading
pkgs/by-name/gd/gdu/package.nix +15 −12 Original line number Diff line number Diff line Loading @@ -4,34 +4,36 @@ buildGoModule, fetchFromGitHub, installShellFiles, testers, gdu, versionCheckHook, }: buildGoModule rec { buildGoModule (finalAttrs: { pname = "gdu"; version = "5.30.1"; version = "5.31.0"; src = fetchFromGitHub { owner = "dundee"; repo = "gdu"; tag = "v${version}"; hash = "sha256-3SymmE3J+lphyRKTQ+sLsnXaBvLyjJRlwpy79U4+t5o="; tag = "v${finalAttrs.version}"; hash = "sha256-MAkD4Mh7aXWc8Y4TkXH7NSDgPQugB7Gjhr4nfOr/X1U="; }; vendorHash = "sha256-aKhHC3sPRyi/l9BxeUgx+3TdYulb0cI9WxuPvbLoswg="; nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles versionCheckHook ]; ldflags = [ "-s" "-w" "-X=github.com/dundee/gdu/v${lib.versions.major version}/build.Version=${version}" "-X=github.com/dundee/gdu/v${lib.versions.major finalAttrs.version}/build.Version=${finalAttrs.version}" ]; postPatch = '' substituteInPlace cmd/gdu/app/app_test.go \ --replace-fail "development" "${version}" --replace-fail "development" "${finalAttrs.version}" ''; postInstall = '' Loading @@ -43,9 +45,10 @@ buildGoModule rec { checkFlags = [ # https://github.com/dundee/gdu/issues/371 "-skip=TestStoredAnalyzer" "-skip=TestAnalyzePathWithIgnoring" ]; passthru.tests.version = testers.testVersion { package = gdu; }; doInstallCheck = true; meta = { description = "Disk usage analyzer with console interface"; Loading @@ -55,7 +58,7 @@ buildGoModule rec { the performance gain is not so huge. ''; homepage = "https://github.com/dundee/gdu"; changelog = "https://github.com/dundee/gdu/releases/tag/v${version}"; changelog = "https://github.com/dundee/gdu/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fab Loading @@ -63,4 +66,4 @@ buildGoModule rec { ]; mainProgram = "gdu"; }; } })