summary refs log blame commit diff
path: root/pkgs/development/tools/gopls/default.nix
blob: 0f57be390f2e4397206f7d895ccf92dda8bcb8f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                        


                   
                    
 


                         
                              
                                                                   


                    
                                                                       
 

                  


                                                                               
                    


                                                                   
                                                                      
    
 
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "gopls";
  version = "0.8.0";

  src = fetchFromGitHub {
    owner = "golang";
    repo = "tools";
    rev = "gopls/v${version}";
    sha256 = "sha256-VBan3IKqf3AFrPoryT/U7lGabFHSXMhaBpnNw3LRH/I=";
  };

  modRoot = "gopls";
  vendorSha256 = "sha256-pW4G89fYFwVM2EkIqTCsl2lhN677LIMFpKPvLVV2boY=";

  doCheck = false;

  # Only build gopls, and not the integration tests or documentation generator.
  subPackages = [ "." ];

  meta = with lib; {
    description = "Official language server for the Go language";
    homepage = "https://github.com/golang/tools/tree/master/gopls";
    license = licenses.bsd3;
    maintainers = with maintainers; [ mic92 SuperSandro2000 zimbatm ];
  };
}