summary refs log tree commit diff
path: root/pkgs/development/tools/golangci-lint
diff options
context:
space:
mode:
authorMichael Fellinger <michael.fellinger@xing.com>2018-07-29 19:16:53 +0200
committerMichael Fellinger <michael.fellinger@xing.com>2018-07-30 10:23:57 +0200
commit06eb270c8ffe1922a54ea3ffee3678f9bf267588 (patch)
treec01de7d79a030f2a977d618e2c6c76bc80eaa6f7 /pkgs/development/tools/golangci-lint
parent285d7709494fdba72299a61b05f9becd76bc3519 (diff)
downloadnixpkgs-06eb270c8ffe1922a54ea3ffee3678f9bf267588.tar
nixpkgs-06eb270c8ffe1922a54ea3ffee3678f9bf267588.tar.gz
nixpkgs-06eb270c8ffe1922a54ea3ffee3678f9bf267588.tar.bz2
nixpkgs-06eb270c8ffe1922a54ea3ffee3678f9bf267588.tar.lz
nixpkgs-06eb270c8ffe1922a54ea3ffee3678f9bf267588.tar.xz
nixpkgs-06eb270c8ffe1922a54ea3ffee3678f9bf267588.tar.zst
nixpkgs-06eb270c8ffe1922a54ea3ffee3678f9bf267588.zip
golangci-lint: init at 1.9.2
Diffstat (limited to 'pkgs/development/tools/golangci-lint')
-rw-r--r--pkgs/development/tools/golangci-lint/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/golangci-lint/default.nix b/pkgs/development/tools/golangci-lint/default.nix
new file mode 100644
index 00000000000..d2db1f1a2a6
--- /dev/null
+++ b/pkgs/development/tools/golangci-lint/default.nix
@@ -0,0 +1,24 @@
+{ buildGoPackage, fetchFromGitHub, lib }:
+
+buildGoPackage rec {
+  name = "golangci-lint-${version}";
+  version = "1.9.2";
+  goPackagePath = "github.com/golangci/golangci-lint";
+
+  subPackages = [ "cmd/golangci-lint" ];
+
+  src = fetchFromGitHub {
+    owner = "golangci";
+    repo = "golangci-lint";
+    rev = "v${version}";
+    sha256 = "0r05j6ayk5778fkd5r1sgcwq675ra0vq82lqs125g70291ryha08";
+  };
+
+  meta = with lib; {
+    description = "Linters Runner for Go. 5x faster than gometalinter. Nice colored output.";
+    homepage = https://golangci.com/;
+    license = licenses.agpl3;
+    platforms = platforms.unix;
+    maintainers = [ maintainers.manveru ];
+  };
+}