From 1e2f37e9f43794b161e5a16dd16460a324158215 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 3 Nov 2016 08:30:49 +0100 Subject: [PATCH] godef: init at 20160620-ee532b9 Signed-off-by: Vincent Demeester --- lib/maintainers.nix | 1 + pkgs/development/tools/godef/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/tools/godef/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 6ff645995407..752d9d6a8f91 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -455,6 +455,7 @@ vbgl = "Vincent Laporte "; vbmithr = "Vincent Bernardoff "; vcunat = "Vladimír Čunát "; + vdemeester = "Vincent Demeester "; veprbl = "Dmitry Kalinkin "; viric = "Lluís Batlle i Rossell "; vizanto = "Danny Wilson "; diff --git a/pkgs/development/tools/godef/default.nix b/pkgs/development/tools/godef/default.nix new file mode 100644 index 000000000000..ddb136ed86ea --- /dev/null +++ b/pkgs/development/tools/godef/default.nix @@ -0,0 +1,23 @@ +{ stdenv, lib, buildGoPackage, fetchgit }: + +buildGoPackage rec { + name = "godef-${version}"; + version = "20160620-${stdenv.lib.strings.substring 0 7 rev}"; + rev = "ee532b944160bb27b6f23e4f5ef38b8fdaa2a6bd"; + + goPackagePath = "github.com/rogpeppe/godef"; + excludedPackages = "go/printer/testdata"; + + src = fetchgit { + inherit rev; + url = "https://github.com/rogpeppe/godef"; + sha256 = "1r8c4ijjnwvb9pci4wasmq88yj0ginwly2542kw4hyg2c87j613l"; + }; + + meta = { + description = "Print where symbols are defined in Go source code"; + homepage = "https://github.com/rogpeppe/godef/"; + maintainers = with stdenv.lib.maintainers; [ vdemeester ]; + licence = stdenv.lib.licenses.bsd3; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f72a57f9bb11..ad1a5a6547d7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7077,7 +7077,7 @@ in #GMP ex-satellite, so better keep it near gmp mpfr = callPackage ../development/libraries/mpfr/default.nix { }; - + mpfi = callPackage ../development/libraries/mpfi { }; # A GMP fork @@ -11228,6 +11228,8 @@ in godep = callPackage ../development/tools/godep { }; + godef = callPackage ../development/tools/godef { }; + goimports = callPackage ../development/tools/goimports { }; govers = callPackage ../development/tools/govers { };