steampipePackages.steampipe-plugin-github: init at 0.41.0
This commit is contained in:
parent
121b49a9b1
commit
d9e0c501b1
@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
steampipe-plugin-aws = callPackage ./steampipe-plugin-aws { };
|
steampipe-plugin-aws = callPackage ./steampipe-plugin-aws { };
|
||||||
|
steampipe-plugin-github = callPackage ./steampipe-plugin-github { };
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
buildGoModule,
|
||||||
|
fetchFromGitHub,
|
||||||
|
lib,
|
||||||
|
nix-update-script,
|
||||||
|
steampipe,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "steampipe-plugin-github";
|
||||||
|
version = "0.41.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "turbot";
|
||||||
|
repo = "steampipe-plugin-github";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-HrtAeQrJJhM1FroeIAVp9ItCFJR/7KkZQLs5QHDVtxw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-GVd0Mif1gsANCBz/0db0Pvcgf3XW1CsZTKgiZ4pWaaI=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out
|
||||||
|
cp $GOPATH/bin/steampipe-plugin-github $out/steampipe-plugin-github.plugin
|
||||||
|
cp -R docs $out/.
|
||||||
|
cp -R config $out/.
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
changelog = "https://github.com/turbot/steampipe-plugin-github/blob/v${version}/CHANGELOG.md";
|
||||||
|
description = "GitHub Plugin for Steampipe";
|
||||||
|
homepage = "https://github.com/turbot/steampipe-plugin-github";
|
||||||
|
license = lib.licenses.apsl20;
|
||||||
|
longDescription = "Use SQL to instantly query repositories, users, gists and more from GitHub.";
|
||||||
|
maintainers = with lib.maintainers; [ anthonyroussel ];
|
||||||
|
platforms = steampipe.meta.platforms;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user