diff options
author | Aaron Jheng <wentworth@outlook.com> | 2023-01-24 00:36:27 +0000 |
---|---|---|
committer | Aaron Jheng <wentworth@outlook.com> | 2023-01-24 00:56:17 +0000 |
commit | 3055e5d16c5fe978977fca1d0a456f14d723d7b3 (patch) | |
tree | 2e61f3fc83535a9bdaa319194b63fce4463c840b /pkgs | |
parent | 287b071e9a7130cacf7664e5c69ec3a889b800f8 (diff) |
gotags: use buildGoModule
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/gotags/default.nix | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/development/tools/gotags/default.nix b/pkgs/development/tools/gotags/default.nix index c4c0b7cbb06fb..9fa71187aa31f 100644 --- a/pkgs/development/tools/gotags/default.nix +++ b/pkgs/development/tools/gotags/default.nix @@ -1,6 +1,6 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, fetchpatch }: -buildGoPackage rec { +buildGoModule rec { pname = "gotags"; version = "1.4.1"; @@ -8,10 +8,20 @@ buildGoPackage rec { owner = "jstemmer"; repo = pname; rev = "4c0c4330071a994fbdfdff68f412d768fbcca313"; - sha256 = "sha256-cHTgt+zW6S6NDWBE6NxSXNPdn84CLD8WmqBe+uXN8sA="; + hash = "sha256-cHTgt+zW6S6NDWBE6NxSXNPdn84CLD8WmqBe+uXN8sA="; }; - goPackagePath = "github.com/jstemmer/gotags"; + vendorHash = null; + + patches = [ + # Add Go Modules support + (fetchpatch { + url = "https://github.com/jstemmer/gotags/commit/9146999bce9a88e15b5f123d1aa1613926dd9a9c.patch"; + hash = "sha256-6v/Ws15y50S6iCI1c0kEw5WHSg+1WqVT4mwdQKoi5G8="; + }) + ]; + + ldflags = [ "-s" "-w" ]; meta = with lib; { description = "ctags-compatible tag generator for Go"; |