2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchgit }:
|
2016-11-03 07:30:49 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "godef-${version}";
|
2018-01-02 09:57:05 +00:00
|
|
|
version = "20170920-${stdenv.lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "b692db1de5229d4248e23c41736b431eb665615d";
|
2016-11-03 07:30:49 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/rogpeppe/godef";
|
|
|
|
excludedPackages = "go/printer/testdata";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
|
|
|
url = "https://github.com/rogpeppe/godef";
|
2018-01-02 09:57:05 +00:00
|
|
|
sha256 = "0xqp9smfyznm8v2iy4wyy3kd24mga12fx0y0896qimac4hj2al15";
|
2016-11-03 07:30:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Print where symbols are defined in Go source code";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/rogpeppe/godef/;
|
2016-11-03 07:30:49 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ vdemeester ];
|
2016-11-20 17:11:29 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2016-11-03 07:30:49 +00:00
|
|
|
};
|
|
|
|
}
|