-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
steampipePackages.steampipe-plugins-azure: init at 1.0.0
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
pkgs/tools/misc/steampipe-packages/steampipe-plugin-azure/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
buildGoModule, | ||
fetchFromGitHub, | ||
lib, | ||
nix-update-script, | ||
steampipe, | ||
}: | ||
|
||
buildGoModule rec { | ||
pname = "steampipe-plugin-azure"; | ||
version = "1.0.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "turbot"; | ||
repo = "steampipe-plugin-azure"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-tIAVYZ+gZnvUJPDYP1WqZb7kAZ1f0YXJ4VWy2Cw2QMo="; | ||
}; | ||
|
||
vendorHash = "sha256-M97SnuWVB7Xw2xXRLBiGCWgATZCYh0BoV4bzhF57x5o="; | ||
|
||
ldflags = [ | ||
"-s" | ||
"-w" | ||
]; | ||
|
||
doCheck = true; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
mkdir -p $out | ||
cp $GOPATH/bin/steampipe-plugin-azure $out/steampipe-plugin-azure.plugin | ||
cp -R docs $out/. | ||
cp -R config $out/. | ||
runHook postInstall | ||
''; | ||
|
||
passthru.updateScript = nix-update-script { }; | ||
|
||
meta = { | ||
changelog = "https://github.com/turbot/steampipe-plugin-azure/blob/v${version}/CHANGELOG.md"; | ||
description = "Azure Plugin for Steampipe"; | ||
homepage = "https://github.com/turbot/steampipe-plugin-azure"; | ||
license = lib.licenses.apsl20; | ||
longDescription = "Use SQL to instantly query Azure resources across regions and subscriptions."; | ||
maintainers = with lib.maintainers; [ petee ]; | ||
platforms = steampipe.meta.platforms; | ||
}; | ||
} |