depot/pkgs/tools/misc/steampipe-packages/steampipe-plugin-github/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

51 lines
1.2 KiB
Nix

{
buildGoModule,
fetchFromGitHub,
lib,
nix-update-script,
steampipe,
}:
buildGoModule rec {
pname = "steampipe-plugin-github";
version = "0.44.0";
src = fetchFromGitHub {
owner = "turbot";
repo = "steampipe-plugin-github";
rev = "refs/tags/v${version}";
hash = "sha256-XscJqrtnvA4poCcUspPIsYIrfI22o/PLeNPBl8WSl/E=";
};
vendorHash = "sha256-EVcPpFzRd9EmyuPqZBQjSNEB4BEbU8Km6Y/f+ulfK5s=";
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.asl20;
longDescription = "Use SQL to instantly query repositories, users, gists and more from GitHub.";
maintainers = with lib.maintainers; [ anthonyroussel ];
platforms = steampipe.meta.platforms;
};
}