treewide: simplify rev/repo arguments in src
+ use fetchFromGithub where possible
This commit is contained in:
committed by
Jonathan Ringer
parent
c6afa8820b
commit
2c931312ce
@@ -1,18 +1,18 @@
|
||||
# This file was generated by go2nix.
|
||||
{ stdenv, buildGoPackage, fetchgit
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub
|
||||
, gx
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "gx-go";
|
||||
version = "1.9.0";
|
||||
rev = "refs/tags/v${version}";
|
||||
|
||||
goPackagePath = "github.com/whyrusleeping/gx-go";
|
||||
|
||||
src = fetchgit {
|
||||
inherit rev;
|
||||
url = "https://github.com/whyrusleeping/gx-go";
|
||||
src = fetchFromGitHub {
|
||||
owner = "whyrusleeping";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "0fdy4b3ymqw6hzvvjwq37mfrdmizc8lxm53axw93n3x6118na9jc";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user