golang: add golint and gotags

This commit is contained in:
Jaka Hudoklin
2014-10-10 15:27:44 +02:00
parent f719f0b230
commit 47e8ee287f
5 changed files with 116 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "golint";
src = import ./deps.nix {
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
};
buildInputs = [ go ];
buildPhase = ''
export GOPATH=$src
go build -v -o lint github.com/golang/lint/golint
'';
installPhase = ''
mkdir -p $out/bin
mv lint $out/bin/golint
'';
meta = with lib; {
description = "Linter for Go source code.";
homepage = https://github.com/golang/lint;
license = licenses.mit;
maintainers = with maintainers; [ offline ];
platforms = platforms.unix;
};
}