Skip to content

Commit

Permalink
bigquery-emulator: don't reference pname in fetchFromGitHub (NixOS#36…
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptaron authored Dec 24, 2024
2 parents e2db3df + c20c01c commit d9e4728
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/by-name/bi/bigquery-emulator/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,23 @@ buildGoModule.override
}
{
name = pname;

src = fetchFromGitHub {
owner = "goccy";
repo = pname;
repo = "bigquery-emulator";
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; {
Expand Down

0 comments on commit d9e4728

Please sign in to comment.