Skip to content

Commit

Permalink
bigquery-emulator: init at 0.6.6 (NixOS#366144)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada authored Dec 19, 2024
2 parents ef391f5 + e9971de commit f36346a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/by-name/bi/bigquery-emulator/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
buildGoModule,
pkgs,
fetchFromGitHub,
lib,
}:
let
version = "0.6.6";
pname = "bigquery-emulator";
in
buildGoModule.override
{
stdenv = pkgs.clangStdenv;
}
{
name = pname;
src = fetchFromGitHub {
owner = "goccy";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-iAVbxbm1G7FIWTB5g6Ff8h2dZjZssONA2MOCGuvK180=";
};

vendorHash = "sha256-TQlsivudutyPFW+3HHX7rYuoB5wafmDTAO1TElO/8pc=";
postPatch = ''
# main module does not contain package
rm -r internal/cmd/generator
'';

ldflags = [ "-s -w -X main.version=${version} -X main.revision=v${version}" ];
doCheck = false;

meta = with lib; {
description = "BigQuery emulator server implemented in Go.";
homepage = "https://github.com/goccy/bigquery-emulator";
changelog = "https://github.com/goccy/pname/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ tarantoj ];
mainProgram = "bigquery-emulator";
};
}

0 comments on commit f36346a

Please sign in to comment.