blob: b9292f6fa1174267d7c7e00454e0ac2bdb11d81d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
};
}
|