Skip to content

Commit c7b6af6

Browse files
committed
cloudlist: add versionCheckHook
1 parent 9c14476 commit c7b6af6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
buildGoModule,
44
fetchFromGitHub,
5+
versionCheckHook,
56
}:
67

78
buildGoModule rec {
@@ -17,11 +18,19 @@ buildGoModule rec {
1718

1819
vendorHash = "sha256-6J9AWONLP/FvR0dXt5Zx4n+kTpmnxF79HcWVFp9OZ0g=";
1920

21+
subPackages = [ "cmd/cloudlist/" ];
22+
2023
ldflags = [
2124
"-w"
2225
"-s"
2326
];
2427

28+
nativeInstallCheckInputs = [ versionCheckHook ];
29+
30+
doInstallCheck = true;
31+
32+
versionCheckProgramArg = [ "--version" ];
33+
2534
meta = with lib; {
2635
description = "Tool for listing assets from multiple cloud providers";
2736
homepage = "https://github.com/projectdiscovery/cloudlist";

0 commit comments

Comments
 (0)