godef: Use fetchFromGitHub

This commit is contained in:
Roman Volosatovs 2019-02-19 20:39:12 +01:00
parent 9bece0f471
commit 6c26419f5e
No known key found for this signature in database
GPG Key ID: 3AC661943D80C89E

View File

@ -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";
};