diff --git a/pkgs/development/tools/golines/default.nix b/pkgs/development/tools/golines/default.nix new file mode 100644 index 000000000000..30a948f8bbc4 --- /dev/null +++ b/pkgs/development/tools/golines/default.nix @@ -0,0 +1,22 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "golines"; + version = "0.11.0"; + + src = fetchFromGitHub { + owner = "segmentio"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-2K9KAg8iSubiTbujyFGN3yggrL+EDyeUCs9OOta/19A="; + }; + + vendorSha256 = "sha256-rxYuzn4ezAxaeDhxd8qdOzt+CKYIh03A9zKNdzILq18="; + + meta = with lib; { + description = "A golang formatter that fixes long lines"; + homepage = "https://github.com/segmentio/golines"; + license = licenses.mit; + maintainers = with maintainers; [ meain ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 940bd41e8161..08d042057b14 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25979,6 +25979,8 @@ with pkgs; go-task = callPackage ../development/tools/go-task { }; + golines = callPackage ../development/tools/golines { }; + golint = callPackage ../development/tools/golint { }; golangci-lint = callPackage ../development/tools/golangci-lint { };