2015-01-06 07:18:55 +00:00
|
|
|
{ stdenv, lib, go_1_3, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
|
2014-10-10 14:27:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "golint";
|
|
|
|
|
|
|
|
src = import ./deps.nix {
|
|
|
|
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
|
|
|
|
};
|
|
|
|
|
2015-01-06 07:18:55 +00:00
|
|
|
buildInputs = [ go_1_3 ];
|
2014-10-10 14:27:44 +01:00
|
|
|
|
|
|
|
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; {
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "Linter for Go source code";
|
2014-10-10 14:27:44 +01:00
|
|
|
homepage = https://github.com/golang/lint;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|