1{
2 buildGoModule,
3 fetchFromGitHub,
4 lib,
5 nix-update-script,
6 steampipe,
7}:
8
9buildGoModule rec {
10 pname = "steampipe-plugin-aws";
11 version = "1.21.0";
12
13 src = fetchFromGitHub {
14 owner = "turbot";
15 repo = "steampipe-plugin-aws";
16 tag = "v${version}";
17 hash = "sha256-RgdQZ3ifJamHVA/+ZZw7FpXZ1x5DejLnE4Edc00cUyQ=";
18 };
19
20 vendorHash = "sha256-3v8gSA0QXT3FmQSRcL8KV53ieNymCgtcxoeNlkP/FLM=";
21
22 ldflags = [
23 "-s"
24 "-w"
25 ];
26
27 doCheck = true;
28
29 installPhase = ''
30 runHook preInstall
31
32 mkdir -p $out
33 cp $GOPATH/bin/steampipe-plugin-aws $out/steampipe-plugin-aws.plugin
34 cp -R docs $out/.
35 cp -R config $out/.
36
37 runHook postInstall
38 '';
39
40 passthru.updateScript = nix-update-script { };
41
42 meta = {
43 changelog = "https://github.com/turbot/steampipe-plugin-aws/blob/v${version}/CHANGELOG.md";
44 description = "AWS Plugin for Steampipe";
45 homepage = "https://github.com/turbot/steampipe-plugin-aws";
46 license = lib.licenses.asl20;
47 longDescription = "Use SQL to instantly query AWS resources across regions and accounts.";
48 maintainers = with lib.maintainers; [ anthonyroussel ];
49 platforms = steampipe.meta.platforms;
50 };
51}