-
-
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-plugin-kubernetes: init at 0.29.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-kubernetes/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-kubernetes"; | ||
version = "0.29.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "turbot"; | ||
repo = "steampipe-plugin-kubernetes"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-EhFCzLHmny2on9EGOEHApkJf+AhU0Bg6FAm2IBLxDZ8="; | ||
}; | ||
|
||
vendorHash = "sha256-oxOLCD5n4Cjdc9Mt2kyec+SBsJWHmwYIyYs9tJPkxcI="; | ||
|
||
ldflags = [ | ||
"-s" | ||
"-w" | ||
]; | ||
|
||
doCheck = true; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
mkdir -p $out | ||
cp $GOPATH/bin/steampipe-plugin-kubernetes $out/steampipe-plugin-kubernetes.plugin | ||
cp -R docs $out/. | ||
cp -R config $out/. | ||
runHook postInstall | ||
''; | ||
|
||
passthru.updateScript = nix-update-script { }; | ||
|
||
meta = { | ||
changelog = "https://github.com/turbot/steampipe-plugin-kubernetes/blob/v${version}/CHANGELOG.md"; | ||
description = "Kubernetes Plugin for Steampipe"; | ||
homepage = "https://github.com/turbot/steampipe-plugin-kubernetes"; | ||
license = lib.licenses.asl20; | ||
longDescription = "Use SQL to instantly query Kubernetes API resources"; | ||
maintainers = with lib.maintainers; [ petee ]; | ||
platforms = steampipe.meta.platforms; | ||
}; | ||
} |