Commit c63e6ea5 authored by Artem Leshchev's avatar Artem Leshchev
Browse files

s5cmd: add versionCheckHook

In case the required ldflags option will change, this hook will catch that.
parent 5429a4f0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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";