From 9bece0f4719ba4ee5d43d482b3276b1604a4cdeb Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Tue, 12 Feb 2019 16:21:30 +0100 Subject: [PATCH 1/2] godef: 1.0.0 -> 1.1.1 --- pkgs/development/tools/godef/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/godef/default.nix b/pkgs/development/tools/godef/default.nix index 497c765b5b1c..4dd7f26668ec 100644 --- a/pkgs/development/tools/godef/default.nix +++ b/pkgs/development/tools/godef/default.nix @@ -2,16 +2,16 @@ buildGoPackage rec { name = "godef-${version}"; - version = "1.0.0"; - rev = "7b4626be9fa8081987905fd4719d2f6628f9d8b5"; + version = "1.1.1"; + rev = "v${version}"; goPackagePath = "github.com/rogpeppe/godef"; - excludedPackages = "go/printer/testdata"; + subPackages = [ "." ]; src = fetchgit { inherit rev; url = "https://github.com/rogpeppe/godef"; - sha256 = "0zhw4ba19hy0kv74c58ax759h8721khmwj04fak2y5800ymsgndg"; + sha256 = "1bpzqnb9fsk1pjjap3gm94pqch1jz02rfah9hg8iqbfm0dzpy31b"; }; meta = { From 6c26419f5ed2d56316ecd2293c11751c9446afea Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Tue, 19 Feb 2019 20:39:12 +0100 Subject: [PATCH 2/2] godef: Use fetchFromGitHub --- pkgs/development/tools/godef/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/godef/default.nix b/pkgs/development/tools/godef/default.nix index 4dd7f26668ec..993305bd98fa 100644 --- a/pkgs/development/tools/godef/default.nix +++ b/pkgs/development/tools/godef/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildGoPackage, fetchgit }: +{ stdenv, buildGoPackage, fetchFromGitHub }: buildGoPackage rec { name = "godef-${version}"; @@ -8,9 +8,10 @@ buildGoPackage rec { goPackagePath = "github.com/rogpeppe/godef"; subPackages = [ "." ]; - src = fetchgit { + src = fetchFromGitHub { inherit rev; - url = "https://github.com/rogpeppe/godef"; + owner = "rogpeppe"; + repo = "godef"; sha256 = "1bpzqnb9fsk1pjjap3gm94pqch1jz02rfah9hg8iqbfm0dzpy31b"; };