nixpkgs/pkgs/by-name/cl/cloudlist/package.nix
2024-12-07 09:48:40 +01:00

43 lines
955 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule rec {
pname = "cloudlist";
version = "1.1.0";
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = "cloudlist";
rev = "refs/tags/v${version}";
hash = "sha256-HV4qhQgeLKwkyrRFzRQibqjWRyjLBtoWVdliJ+iyyBc=";
};
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";
changelog = "https://github.com/projectdiscovery/cloudlist/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "cloudlist";
};
}