Moving from fetchgit generated by go2nix to fetchFromGitHub where rev is

a tag
This commit is contained in:
Kamil Chmielewski
2016-06-06 12:26:56 +02:00
parent 8dc356c731
commit bbc37e0eb7
23 changed files with 95 additions and 72 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, lib, ncurses, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
{ stdenv, lib, ncurses, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "fzf-${version}";
@@ -7,9 +7,10 @@ buildGoPackage rec {
goPackagePath = "github.com/junegunn/fzf";
src = fetchgit {
src = fetchFromGitHub {
inherit rev;
url = "https://github.com/junegunn/fzf";
owner = "junegunn";
repo = "fzf";
sha256 = "02qqcnijv8z3736iczbx082yizpqk02g5k746k7sdgfkgyxydppk";
};

View File

@@ -1,4 +1,4 @@
{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
let
tools = [
@@ -14,9 +14,10 @@ buildGoPackage rec {
goPackagePath = "github.com/mongodb/mongo-tools";
subPackages = map (t: t + "/main") tools;
src = fetchgit {
src = fetchFromGitHub {
inherit rev;
url = "https://github.com/mongodb/mongo-tools";
owner = "mongodb";
repo = "mongo-tools";
sha256 = "142vxgniri1mfy2xmfgxhbdp6k6h8c5milv454krv1b51v43hsbm";
};