bigquery-emulator: refactor
this shouldn't create any rebuilds
This commit is contained in:
@@ -4,21 +4,19 @@
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
}:
|
||||
let
|
||||
version = "0.6.6";
|
||||
pname = "bigquery-emulator";
|
||||
in
|
||||
|
||||
buildGoModule.override
|
||||
{
|
||||
stdenv = pkgs.clangStdenv;
|
||||
}
|
||||
{
|
||||
inherit pname version;
|
||||
(finalAttrs: {
|
||||
version = "0.6.6";
|
||||
pname = "bigquery-emulator";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "goccy";
|
||||
repo = "bigquery-emulator";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-iAVbxbm1G7FIWTB5g6Ff8h2dZjZssONA2MOCGuvK180=";
|
||||
};
|
||||
|
||||
@@ -29,16 +27,16 @@ buildGoModule.override
|
||||
rm -r internal/cmd/generator
|
||||
'';
|
||||
|
||||
ldflags = [ "-s -w -X main.version=${version} -X main.revision=v${version}" ];
|
||||
ldflags = [ "-s -w -X main.version=${finalAttrs.version} -X main.revision=v${finalAttrs.version}" ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "BigQuery emulator server implemented in Go";
|
||||
homepage = "https://github.com/goccy/bigquery-emulator";
|
||||
changelog = "https://github.com/goccy/pname/releases/tag/v${version}";
|
||||
changelog = "https://github.com/goccy/pname/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ tarantoj ];
|
||||
mainProgram = "bigquery-emulator";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user