Skip to content

Commit

Permalink
bigquery-emulator: init at 0.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tarantoj committed Dec 18, 2024
1 parent ea08036 commit c70d924
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.5";
pname = "bigquery-emulator";
in
buildGoModule.override
{
stdenv = pkgs.clangStdenv;
}
{
name = pname;
src = fetchFromGitHub {
owner = "goccy";
repo = pname;
rev = "v${version}";
hash = "sha256-uYWAZw/4IOH5FVwPO9mtPhwG2D6HsVkScXmKsxtD2gY=";
};

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 c70d924

Please sign in to comment.