From ba375edb3fb1501a4da1f5b87adb0e3040b3eefb Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Sun, 15 Jan 2023 10:38:32 +0530 Subject: [PATCH] golines: init at 0.11.0 --- pkgs/development/tools/golines/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/tools/golines/default.nix 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 61a8fa4bc024..2d301b83cc1b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26016,6 +26016,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 { };