nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 versionCheckHook,
6}:
7
8buildGoModule (finalAttrs: {
9 pname = "cloudlist";
10 version = "1.3.0";
11
12 src = fetchFromGitHub {
13 owner = "projectdiscovery";
14 repo = "cloudlist";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-Tm2gqRZxfeu5gOndVeeFU9HCePpXyx/G73VzVuJRRzY=";
17 };
18
19 vendorHash = "sha256-LkjJrxrK1N+6v6ilMT68lu21B3NemxdquMIA5e8r1a0=";
20
21 subPackages = [ "cmd/cloudlist/" ];
22
23 ldflags = [
24 "-w"
25 "-s"
26 ];
27
28 nativeInstallCheckInputs = [ versionCheckHook ];
29
30 doInstallCheck = true;
31
32 meta = {
33 description = "Tool for listing assets from multiple cloud providers";
34 homepage = "https://github.com/projectdiscovery/cloudlist";
35 changelog = "https://github.com/projectdiscovery/cloudlist/releases/tag/v${finalAttrs.version}";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ fab ];
38 mainProgram = "cloudlist";
39 };
40})