Skip to content

Commit 4e7b5dd

Browse files
authored
cloudlist: refactor (#362732)
2 parents d4f88d3 + c7b6af6 commit 4e7b5dd

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

pkgs/by-name/cl/cloudlist/package.nix

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
{ lib
2-
, buildGoModule
3-
, fetchFromGitHub
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
versionCheckHook,
46
}:
57

68
buildGoModule rec {
@@ -16,17 +18,25 @@ buildGoModule rec {
1618

1719
vendorHash = "sha256-6J9AWONLP/FvR0dXt5Zx4n+kTpmnxF79HcWVFp9OZ0g=";
1820

21+
subPackages = [ "cmd/cloudlist/" ];
22+
1923
ldflags = [
2024
"-w"
2125
"-s"
2226
];
2327

28+
nativeInstallCheckInputs = [ versionCheckHook ];
29+
30+
doInstallCheck = true;
31+
32+
versionCheckProgramArg = [ "--version" ];
33+
2434
meta = with lib; {
2535
description = "Tool for listing assets from multiple cloud providers";
26-
mainProgram = "cloudlist";
2736
homepage = "https://github.com/projectdiscovery/cloudlist";
2837
changelog = "https://github.com/projectdiscovery/cloudlist/releases/tag/v${version}";
2938
license = licenses.mit;
3039
maintainers = with maintainers; [ fab ];
40+
mainProgram = "cloudlist";
3141
};
3242
}

0 commit comments

Comments
 (0)