From e9971de2170a462b32f8c475b268518d9a850521 Mon Sep 17 00:00:00 2001 From: James Taranto Date: Wed, 18 Dec 2024 23:56:20 +1100 Subject: [PATCH] bigquery-emulator: init at 0.6.6 --- pkgs/by-name/bi/bigquery-emulator/package.nix | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/bi/bigquery-emulator/package.nix diff --git a/pkgs/by-name/bi/bigquery-emulator/package.nix b/pkgs/by-name/bi/bigquery-emulator/package.nix new file mode 100644 index 0000000000000..0425cd5af5dd5 --- /dev/null +++ b/pkgs/by-name/bi/bigquery-emulator/package.nix @@ -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"; + }; + }