httpx: add versionCheckHook

This commit is contained in:
Fabian Affolter
2024-12-02 23:54:55 +01:00
parent 08061fddcc
commit 3709deefc6
+7
View File
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule rec {
@@ -19,6 +20,8 @@ buildGoModule rec {
subPackages = [ "cmd/httpx" ];
nativeInstallCheckInputs = [ versionCheckHook ];
ldflags = [
"-s"
"-w"
@@ -27,6 +30,10 @@ buildGoModule rec {
# Tests require network access
doCheck = false;
doInstallCheck = true;
versionCheckProgramArg = [ "-version" ];
meta = with lib; {
description = "Fast and multi-purpose HTTP toolkit";
longDescription = ''