File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
pkgs/by-name/cl/cloudlist Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1- { lib
2- , buildGoModule
3- , fetchFromGitHub
1+ {
2+ lib ,
3+ buildGoModule ,
4+ fetchFromGitHub ,
5+ versionCheckHook ,
46} :
57
68buildGoModule 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}
You can’t perform that action at this time.
0 commit comments