From c63e6ea540a5e91676119827133c62908e30d154 Mon Sep 17 00:00:00 2001 From: Artem Leshchev Date: Mon, 13 Apr 2026 16:16:50 -0500 Subject: [PATCH] s5cmd: add versionCheckHook In case the required ldflags option will change, this hook will catch that. --- pkgs/by-name/s5/s5cmd/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/s5/s5cmd/package.nix b/pkgs/by-name/s5/s5cmd/package.nix index 11744dc11fe3..fbd0fa11d0f8 100644 --- a/pkgs/by-name/s5/s5cmd/package.nix +++ b/pkgs/by-name/s5/s5cmd/package.nix @@ -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";