s5cmd: add versionCheckHook
In case the required ldflags option will change, this hook will catch that.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user