commit
78198301f3
@ -1,31 +1,31 @@
|
||||
# This file was generated by https://github.com/kamilchm/go2nix v2.0-dev
|
||||
{ lib, buildGoPackage, zip, fetchFromGitHub }:
|
||||
{ lib, buildGoPackage, zip, fetchFromGitHub, makeWrapper, xdg-utils }:
|
||||
let
|
||||
webassets = fetchFromGitHub {
|
||||
owner = "gravitational";
|
||||
repo = "webassets";
|
||||
rev = "2d79788dbcd005bdcfe5b5120007d0faf8f1fc82";
|
||||
sha256 = "001a3bx8yyx1hq8y5yiy1jzp122q8gcl369lj0609gaxp6dk5bdw";
|
||||
rev = "8ace0cfcc6867651bed3fd5b5f35aaa2a80e1106";
|
||||
sha256 = "sha256-mzvYysCFMvWHo8Y4cmhAju62jjpe92j564gc12BSdZA=";
|
||||
};
|
||||
in
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "teleport";
|
||||
version = "5.1.2";
|
||||
version = "5.2.1";
|
||||
|
||||
# This repo has a private submodule "e" which fetchgit cannot handle without failing.
|
||||
src = fetchFromGitHub {
|
||||
owner = "gravitational";
|
||||
repo = "teleport";
|
||||
rev = "v${version}";
|
||||
sha256 = "0h1hn2dpdsmhxac06gn6787z2mnfcwb3wn0c2l7l2qhw6iqpgmvh";
|
||||
sha256 = "sha256-8WEVH+04y1/s9KpBlK/LrgHG7qTpu2LqtanKKdi9N08=";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/gravitational/teleport";
|
||||
|
||||
subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
|
||||
|
||||
nativeBuildInputs = [ zip ];
|
||||
nativeBuildInputs = [ zip makeWrapper ];
|
||||
|
||||
postBuild = ''
|
||||
pushd .
|
||||
@ -48,6 +48,7 @@ buildGoPackage rec {
|
||||
|
||||
postInstall = ''
|
||||
install -Dm755 -t $client/bin $out/bin/tsh
|
||||
wrapProgram $out/bin/tsh --prefix PATH : ${xdg-utils}/bin
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
|
Loading…
Reference in New Issue
Block a user