cloudlist: refactor (#362732)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@@ -16,17 +18,25 @@ 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";
|
||||
mainProgram = "cloudlist";
|
||||
homepage = "https://github.com/projectdiscovery/cloudlist";
|
||||
changelog = "https://github.com/projectdiscovery/cloudlist/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "cloudlist";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user