Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5 nix-update-script, 6 steampipe, 7}: 8 9buildGoModule rec { 10 pname = "steampipe-plugin-github"; 11 version = "1.5.0"; 12 13 src = fetchFromGitHub { 14 owner = "turbot"; 15 repo = "steampipe-plugin-github"; 16 tag = "v${version}"; 17 hash = "sha256-+RHYPeVY19zRWhI4U4dWuHJseBO9r7hms7XsLrknA2I="; 18 }; 19 20 vendorHash = "sha256-vZDXLfo9EtPKSLE8hHA5lR/RgJtWESdOqOjpFywXKbs="; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 ]; 26 27 doCheck = true; 28 29 installPhase = '' 30 runHook preInstall 31 32 mkdir -p $out 33 cp $GOPATH/bin/steampipe-plugin-github $out/steampipe-plugin-github.plugin 34 cp -R docs $out/. 35 cp -R config $out/. 36 37 runHook postInstall 38 ''; 39 40 passthru.updateScript = nix-update-script { }; 41 42 meta = { 43 changelog = "https://github.com/turbot/steampipe-plugin-github/blob/v${version}/CHANGELOG.md"; 44 description = "GitHub Plugin for Steampipe"; 45 homepage = "https://github.com/turbot/steampipe-plugin-github"; 46 license = lib.licenses.asl20; 47 longDescription = "Use SQL to instantly query repositories, users, gists and more from GitHub."; 48 maintainers = with lib.maintainers; [ anthonyroussel ]; 49 platforms = steampipe.meta.platforms; 50 }; 51}