s5cmd: inject version (#509745)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
@@ -17,9 +18,18 @@ buildGoModule (finalAttrs: {
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
ldflags = [ "-X github.com/peak/s5cmd/v2/version.Version=v${finalAttrs.version}" ];
|
||||
|
||||
# Skip e2e tests requiring network access
|
||||
excludedPackages = [ "./e2e" ];
|
||||
|
||||
# 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