From 734d15297721cf241df361d4a98be58c13fc75af Mon Sep 17 00:00:00 2001 From: Kamil Chmielewski Date: Mon, 6 Jun 2016 12:56:28 +0200 Subject: [PATCH] buildGo16Packages: fetchgit -> fetchFromGitHub --- .../applications/networking/cluster/terraform/default.nix | 7 ++++--- pkgs/development/tools/glide/default.nix | 8 ++++---- pkgs/servers/caddy/default.nix | 7 ++++--- pkgs/servers/monitoring/consul-alerts/default.nix | 7 ++++--- pkgs/tools/security/vault/default.nix | 7 ++++--- pkgs/tools/system/consul-template/default.nix | 7 ++++--- 6 files changed, 24 insertions(+), 19 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform/default.nix b/pkgs/applications/networking/cluster/terraform/default.nix index 44e6a10963a9..803bf1e95cce 100644 --- a/pkgs/applications/networking/cluster/terraform/default.nix +++ b/pkgs/applications/networking/cluster/terraform/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildGo16Package, fetchgit, fetchhg, fetchbzr, fetchsvn }: +{ stdenv, lib, buildGo16Package, fetchFromGitHub }: buildGo16Package rec { name = "terraform-${version}"; @@ -7,9 +7,10 @@ buildGo16Package rec { goPackagePath = "github.com/hashicorp/terraform"; - src = fetchgit { + src = fetchFromGitHub { inherit rev; - url = "https://github.com/hashicorp/terraform"; + owner = "hashicorp"; + repo = "terraform"; sha256 = "1mf98hagb0yp40g2mbar7aw7hmpq01clnil6y9khvykrb33vy0nb"; }; diff --git a/pkgs/development/tools/glide/default.nix b/pkgs/development/tools/glide/default.nix index 9489f5a7bac8..8378f9eabf4f 100644 --- a/pkgs/development/tools/glide/default.nix +++ b/pkgs/development/tools/glide/default.nix @@ -1,5 +1,4 @@ -# This file was generated by go2nix. -{ stdenv, lib, buildGo16Package, fetchgit, fetchhg, fetchbzr, fetchsvn }: +{ stdenv, lib, buildGo16Package, fetchFromGitHub }: buildGo16Package rec { name = "glide-${version}"; @@ -8,9 +7,10 @@ buildGo16Package rec { goPackagePath = "github.com/Masterminds/glide"; - src = fetchgit { + src = fetchFromGitHub { inherit rev; - url = "https://github.com/Masterminds/glide"; + owner = "Masterminds"; + repo = "glide"; sha256 = "1qb2n5i04gabb2snnwfr8wv4ypcp1pdzvgga62m9xkhk4p2w6pwl"; }; } diff --git a/pkgs/servers/caddy/default.nix b/pkgs/servers/caddy/default.nix index 2b0ae98c4641..774e57fc8911 100644 --- a/pkgs/servers/caddy/default.nix +++ b/pkgs/servers/caddy/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildGo16Package, fetchgit, fetchhg, fetchbzr, fetchsvn }: +{ stdenv, lib, buildGo16Package, fetchFromGitHub }: buildGo16Package rec { name = "caddy-${version}"; @@ -7,9 +7,10 @@ buildGo16Package rec { goPackagePath = "github.com/mholt/caddy"; - src = fetchgit { + src = fetchFromGitHub { inherit rev; - url = "https://github.com/mholt/caddy"; + owner = "mholt"; + repo = "caddy"; sha256 = "1snijkbz02yr7wij7bcmrj4257709sbklb3nhb5qmy95b9ssffm6"; }; diff --git a/pkgs/servers/monitoring/consul-alerts/default.nix b/pkgs/servers/monitoring/consul-alerts/default.nix index ee904dec6eba..01848e93b257 100644 --- a/pkgs/servers/monitoring/consul-alerts/default.nix +++ b/pkgs/servers/monitoring/consul-alerts/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildGo16Package, fetchgit, fetchhg, fetchbzr, fetchsvn }: +{ stdenv, lib, buildGo16Package, fetchFromGitHub }: buildGo16Package rec { name = "consul-alerts-${version}"; @@ -7,9 +7,10 @@ buildGo16Package rec { goPackagePath = "github.com/AcalephStorage/consul-alerts"; - src = fetchgit { + src = fetchFromGitHub { inherit rev; - url = "https://github.com/AcalephStorage/consul-alerts"; + owner = "AcalephStorage"; + repo = "consul-alerts"; sha256 = "1w0mb20w1yazyh84sa30bsw271c5nm7lsx2qg0g3gf6mxdb63lpq"; }; } diff --git a/pkgs/tools/security/vault/default.nix b/pkgs/tools/security/vault/default.nix index 8470441f530b..5aeefa980185 100644 --- a/pkgs/tools/security/vault/default.nix +++ b/pkgs/tools/security/vault/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildGo16Package, fetchgit, fetchhg, fetchbzr, fetchsvn }: +{ stdenv, lib, buildGo16Package, fetchFromGitHub }: buildGo16Package rec { name = "vault-${version}"; @@ -7,9 +7,10 @@ buildGo16Package rec { goPackagePath = "github.com/hashicorp/vault"; - src = fetchgit { + src = fetchFromGitHub { inherit rev; - url = "https://github.com/hashicorp/vault"; + owner = "hashicorp"; + repo = "vault"; sha256 = "085rk5i480wdlkn2p14yxi8zgsc11595nkkda1i77c4vjkllbkdy"; }; } diff --git a/pkgs/tools/system/consul-template/default.nix b/pkgs/tools/system/consul-template/default.nix index 7c4bda8a5699..9e4e220d052c 100644 --- a/pkgs/tools/system/consul-template/default.nix +++ b/pkgs/tools/system/consul-template/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildGo16Package, fetchgit, fetchhg, fetchbzr, fetchsvn }: +{ stdenv, lib, buildGo16Package, fetchFromGitHub }: buildGo16Package rec { name = "consul-template-${version}"; @@ -7,9 +7,10 @@ buildGo16Package rec { goPackagePath = "github.com/hashicorp/consul-template"; - src = fetchgit { + src = fetchFromGitHub { inherit rev; - url = "https://github.com/hashicorp/consul-template"; + owner = "hashicorp"; + repo = "consul-template"; sha256 = "15zsax44g3dwjmmm4fpb54mvsjvjf3b6g3ijskgipvhcy0d3j938"; }; }