biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / by-name / go / gosimports / package.nix
blobc47446d1a7a6f6c7e1e2d9d459a999b0a0935687
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "gosimports";
8   version = "0.3.8";
10   src = fetchFromGitHub {
11     owner = "rinchsan";
12     repo = "gosimports";
13     rev = "v${version}";
14     hash = "sha256-xM1CGW8UB+VHN+2Rm6cF/1bOBVDeUG+6kxUxUcvP7FM=";
15   };
17   vendorHash = "sha256-xR1YTwUcJcpe4NXH8sp9bNAWggvcvVJLztD49gQIdMU=";
19   subPackages = [ "cmd/gosimports" ];
21   ldflags = [
22     "-s"
23     "-w"
24     "-X main.version=${version}"
25   ];
27   meta = with lib; {
28     homepage = "https://github.com/rinchsan/gosimports";
29     description = "Simpler goimports";
30     license = licenses.bsd3;
31     maintainers = with maintainers; [ maolonglong ];
32     mainProgram = "gosimports";
33   };