treewide: simplify rev/repo arguments in src

+ use fetchFromGithub where possible
This commit is contained in:
Pavol Rusnak
2020-11-01 23:02:24 -08:00
committed by Jonathan Ringer
parent c6afa8820b
commit 2c931312ce
86 changed files with 148 additions and 134 deletions
+5 -5
View File
@@ -1,16 +1,16 @@
# This file was generated by go2nix.
{ stdenv, buildGoPackage, fetchgit }:
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "gx";
version = "0.14.1";
rev = "refs/tags/v${version}";
goPackagePath = "github.com/whyrusleeping/gx";
src = fetchgit {
inherit rev;
url = "https://github.com/whyrusleeping/gx";
src = fetchFromGitHub {
owner = "whyrusleeping";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "0pfx2p59xdbmqzfbgaf8xvlnzh8m05hkg596glq5kvl8ib65i4ha";
};