2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-10 15:04:44 +00:00

cloudlist: add versionCheckHook

This commit is contained in:
Fabian Affolter 2024-12-07 09:48:40 +01:00
parent 9c144766f0
commit c7b6af6e66

View File

@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule rec {
@ -17,11 +18,19 @@ buildGoModule rec {
vendorHash = "sha256-6J9AWONLP/FvR0dXt5Zx4n+kTpmnxF79HcWVFp9OZ0g=";
subPackages = [ "cmd/cloudlist/" ];
ldflags = [
"-w"
"-s"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = [ "--version" ];
meta = with lib; {
description = "Tool for listing assets from multiple cloud providers";
homepage = "https://github.com/projectdiscovery/cloudlist";