s5cmd: add versionCheckHook

In case the required ldflags option will change, this hook will catch that.
This commit is contained in:
Artem Leshchev
2026-04-13 16:16:50 -05:00
parent 5429a4f056
commit c63e6ea540
+5
View File
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
@@ -25,6 +26,10 @@ buildGoModule (finalAttrs: {
# Fix tests creating network sockets on macOS
__darwinAllowLocalNetworking = true;
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = [ "version" ];
meta = {
homepage = "https://github.com/peak/s5cmd";
description = "Parallel S3 and local filesystem execution tool";