about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-05-13 19:12:49 +0800
committerGitHub <noreply@github.com>2022-05-13 19:12:49 +0800
commit544182d3c8083b6642a3c0e4bdc57f130e11394c (patch)
treea836dad97fdb011d686dca8a0669c485db03158b /pkgs/development
parent110e02b744f10e060b1a353558abb3d9d9445d08 (diff)
parent7387c69d8441606758febcbf18bbc7a066bd24ce (diff)
Merge pull request #171185 from aaronjheng/goconst
goconst: 1.4.0 -> 1.5.1
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/tools/goconst/default.nix19
1 files changed, 9 insertions, 10 deletions
diff --git a/pkgs/development/tools/goconst/default.nix b/pkgs/development/tools/goconst/default.nix
index 987a3285f8be2..27e43fec99987 100644
--- a/pkgs/development/tools/goconst/default.nix
+++ b/pkgs/development/tools/goconst/default.nix
@@ -1,23 +1,22 @@
-{ buildGoPackage
-, lib
-, fetchFromGitHub
-}:
+{ lib, buildGoModule, fetchFromGitHub }:
 
-buildGoPackage rec {
+buildGoModule rec {
   pname = "goconst";
-  version = "1.4.0";
-
-  goPackagePath = "github.com/jgautheron/goconst";
+  version = "1.5.1";
 
   excludedPackages = [ "tests" ];
 
   src = fetchFromGitHub {
     owner = "jgautheron";
     repo = "goconst";
-    rev = version;
-    sha256 = "0jp9vg5l4wcvnf653h3d8ay2n7y717l9z34rls1vrsaf0qdf1r6v";
+    rev = "v${version}";
+    sha256 = "sha256-chBWxOy9V4pO3hMaeCoKwnQxIEYiSejUOD3QDBCpaoE=";
   };
 
+  vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
+
+  ldflags = [ "-s" "-w" ];
+
   meta = with lib; {
     description = "Find in Go repeated strings that could be replaced by a constant";
     homepage = "https://github.com/jgautheron/goconst";