2014-06-23 10:49:58 +01:00
|
|
|
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gocode";
|
|
|
|
|
|
|
|
src = import ./deps.nix {
|
|
|
|
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ go ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
export GOPATH=$src
|
|
|
|
go build -v -o gocode github.com/nsf/gocode
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-07-22 10:01:32 +01:00
|
|
|
mkdir -p $out/bin
|
2014-06-23 10:49:58 +01:00
|
|
|
mv gocode $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An autocompletion daemon for the Go programming language";
|
|
|
|
homepage = https://github.com/nsf/gocode;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|