mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-20 04:33:19 +02:00
30 lines
664 B
Nix
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;
|
|
};
|
|
}
|