Files
nixpkgs/pkgs/tools/misc/steampipe-packages/steampipe-plugin-github/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.2 KiB
Nix

{
buildGoModule,
fetchFromGitHub,
lib,
nix-update-script,
steampipe,
}:
buildGoModule rec {
pname = "steampipe-plugin-github";
version = "1.6.0";
src = fetchFromGitHub {
owner = "turbot";
repo = "steampipe-plugin-github";
tag = "v${version}";
hash = "sha256-A9dmn6a6K86EMxEUUyMj5OH3bhvaOFaX+xMMtwQuilo=";
};
vendorHash = "sha256-wBzD/D4FDtfOTmbgbrbu54aDrKFE0bbmMehTB0cF0tE=";
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;
};
}