Skip to content

Commit

Permalink
Merge pull request #318272 from luftmensch-luftmensch/go-symbols_update
Browse files Browse the repository at this point in the history
go-symbols: migrate to buildGoModule
  • Loading branch information
katexochen authored Jun 9, 2024
2 parents bff6055 + 77cd3ce commit d75f7c2
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 37 deletions.
39 changes: 39 additions & 0 deletions pkgs/by-name/go/go-symbols/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
lib,
buildGoModule,
fetchFromGitHub,
fetchpatch,
}:

buildGoModule rec {
pname = "go-symbols";
version = "0.1.1";

vendorHash = "sha256-8unWnxTQzPY8tKBtss9qQG+ksWyheKxKRlg65F0vWWU=";

src = fetchFromGitHub {
owner = "acroca";
repo = "go-symbols";
rev = "v${version}";
sha256 = "0yyzw6clndb2r5j9isyd727njs98zzp057v314vfvknsm8g7hqrz";
};

patches = [
# Migrate to Go modules
(fetchpatch {
url = "https://github.com/acroca/go-symbols/commit/414c2283696b50fc5009055e5bc2590ce45f4400.patch";
hash = "sha256-9lndJhyN8eaovjQlfSRGP8lC4F+pAXUoR2AvYvhSx2U=";
})
];

meta = {
description = "A utility for extracting a JSON representation of the package symbols from a go source tree";
mainProgram = "go-symbols";
homepage = "https://github.com/acroca/go-symbols";
maintainers = with lib.maintainers; [
luftmensch-luftmensch
vdemeester
];
license = lib.licenses.mit;
};
}
24 changes: 0 additions & 24 deletions pkgs/development/tools/go-symbols/default.nix

This file was deleted.

11 changes: 0 additions & 11 deletions pkgs/development/tools/go-symbols/deps.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27531,8 +27531,6 @@ with pkgs;

go-protobuf = callPackage ../development/tools/go-protobuf { };

go-symbols = callPackage ../development/tools/go-symbols { };

go-toml = callPackage ../development/tools/go-toml { };

go-outline = callPackage ../development/tools/go-outline { };
Expand Down

0 comments on commit d75f7c2

Please sign in to comment.