teleport: use fetchFromGitHub instead of fetchurl

This commit is contained in:
Jörg Thalheim 2018-02-01 10:27:07 +00:00
parent 256d147931
commit adfeacc547

View file

@ -1,10 +1,18 @@
# This file was generated by https://github.com/kamilchm/go2nix v2.0-dev
{ stdenv, buildGoPackage, zip, fetchurl }:
{ stdenv, buildGoPackage, zip, fetchFromGitHub }:
buildGoPackage rec {
name = "teleport-${version}";
version = "2.4.0";
# This repo has a private submodule "e" which fetchgit cannot handle without failing.
src = fetchFromGitHub {
owner = "gravitational";
repo = "teleport";
rev = "v${version}";
sha256 = "1x4xnqjyb87pzmn2c59fwmzfx1f2k0xhqn2xgki3722qmj2ss846";
};
goPackagePath = "github.com/gravitational/teleport";
subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
buildInputs = [ zip ];
@ -23,13 +31,6 @@ buildGoPackage rec {
dontStrip = true;
# This repo has a private submodule "e" which fetchgit cannot handle
# without failing. Using fetchurl instead on the latest tagged release.
src = fetchurl {
url = "https://github.com/gravitational/teleport/archive/v2.4.0.tar.gz";
sha256 = "01qcr6vml3ias3gbkqjnb5fmc6ap1fd5mi52ygn3agafy63jb5rd";
};
meta = {
description = "A SSH CA management suite";
homepage = "https://gravitational.com/teleport/";