teleport: use fetchFromGitHub instead of fetchurl
This commit is contained in:
@@ -1,10 +1,18 @@
|
|||||||
# This file was generated by https://github.com/kamilchm/go2nix v2.0-dev
|
# This file was generated by https://github.com/kamilchm/go2nix v2.0-dev
|
||||||
{ stdenv, buildGoPackage, zip, fetchurl }:
|
{ stdenv, buildGoPackage, zip, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "teleport-${version}";
|
name = "teleport-${version}";
|
||||||
version = "2.4.0";
|
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";
|
goPackagePath = "github.com/gravitational/teleport";
|
||||||
subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
|
subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
|
||||||
buildInputs = [ zip ];
|
buildInputs = [ zip ];
|
||||||
@@ -23,13 +31,6 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
dontStrip = true;
|
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 = {
|
meta = {
|
||||||
description = "A SSH CA management suite";
|
description = "A SSH CA management suite";
|
||||||
homepage = "https://gravitational.com/teleport/";
|
homepage = "https://gravitational.com/teleport/";
|
||||||
|
|||||||
Reference in New Issue
Block a user