Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "gopls"; 5 version = "0.12.0"; 6 7 src = fetchFromGitHub { 8 owner = "golang"; 9 repo = "tools"; 10 rev = "gopls/v${version}"; 11 sha256 = "sha256-y9FgB8Qsm5wQ7dtrKrcl/bHTw04eRU1B7a+aZmA+eBE="; 12 }; 13 14 modRoot = "gopls"; 15 vendorSha256 = "sha256-MkldIbp7BpdfyapiJ1E4h3ft6g74zMb72tt4tCJlJz8="; 16 17 doCheck = false; 18 19 # Only build gopls, and not the integration tests or documentation generator. 20 subPackages = [ "." ]; 21 22 meta = with lib; { 23 description = "Official language server for the Go language"; 24 homepage = "https://github.com/golang/tools/tree/master/gopls"; 25 license = licenses.bsd3; 26 maintainers = with maintainers; [ mic92 rski SuperSandro2000 zimbatm ]; 27 }; 28}