nixpkgs/pkgs/development/tools/gotags/default.nix
2014-10-10 15:27:44 +02:00

30 lines
664 B
Nix

{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "gotags";
src = import ./deps.nix {
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
};
buildInputs = [ go ];
buildPhase = ''
export GOPATH=$src
go build -v -o gotags github.com/jstemmer/gotags
'';
installPhase = ''
mkdir -p $out/bin
mv gotags $out/bin
'';
meta = with lib; {
description = "Ctags-compatible tag generator for Go";
homepage = https://github.com/nsf/gotags;
license = licenses.mit;
maintainers = with maintainers; [ offline ];
platforms = platforms.unix;
};
}