Merge pull request #120224 from justinas/teleport-6

teleport: 5.2.1 -> 6.1.2

authored by Luke Granger-Brown and committed by GitHub 6af7bcbd 9788d31a

+16 -9
+16 -9
pkgs/servers/teleport/default.nix
··· 1 # This file was generated by https://github.com/kamilchm/go2nix v2.0-dev 2 - { lib, buildGoPackage, zip, fetchFromGitHub, makeWrapper, xdg-utils }: 3 let 4 webassets = fetchFromGitHub { 5 owner = "gravitational"; 6 repo = "webassets"; 7 - rev = "8ace0cfcc6867651bed3fd5b5f35aaa2a80e1106"; 8 - sha256 = "sha256-mzvYysCFMvWHo8Y4cmhAju62jjpe92j564gc12BSdZA="; 9 }; 10 in 11 12 - buildGoPackage rec { 13 pname = "teleport"; 14 - version = "5.2.1"; 15 16 # This repo has a private submodule "e" which fetchgit cannot handle without failing. 17 src = fetchFromGitHub { 18 owner = "gravitational"; 19 repo = "teleport"; 20 rev = "v${version}"; 21 - sha256 = "sha256-8WEVH+04y1/s9KpBlK/LrgHG7qTpu2LqtanKKdi9N08="; 22 }; 23 24 - goPackagePath = "github.com/gravitational/teleport"; 25 26 subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ]; 27 ··· 29 30 postBuild = '' 31 pushd . 32 - cd $NIX_BUILD_TOP/go/src/github.com/gravitational/teleport 33 mkdir -p build 34 echo "making webassets" 35 cp -r ${webassets}/* webassets/ ··· 41 popd 42 ''; 43 44 # Reduce closure size for client machines 45 outputs = [ "out" "client" ]; 46 47 buildTargets = [ "full" ]; 48 49 postInstall = '' 50 install -Dm755 -t $client/bin $out/bin/tsh 51 wrapProgram $out/bin/tsh --prefix PATH : ${xdg-utils}/bin 52 ''; 53 ··· 62 63 meta = with lib; { 64 description = "A SSH CA management suite"; 65 - homepage = "https://gravitational.com/teleport/"; 66 license = licenses.asl20; 67 maintainers = with maintainers; [ sigma tomberek freezeboy ]; 68 platforms = platforms.unix;
··· 1 # This file was generated by https://github.com/kamilchm/go2nix v2.0-dev 2 + { lib, buildGoModule, zip, fetchFromGitHub, makeWrapper, xdg-utils }: 3 let 4 webassets = fetchFromGitHub { 5 owner = "gravitational"; 6 repo = "webassets"; 7 + rev = "cf396f868aebb8ba654ea2398c25f033181e7114"; 8 + sha256 = "sha256-12jkpWl/kL0ttRHtxyDnKjYAZNrheEGQF8HEGSXvvAk="; 9 }; 10 in 11 12 + buildGoModule rec { 13 pname = "teleport"; 14 + version = "6.1.2"; 15 16 # This repo has a private submodule "e" which fetchgit cannot handle without failing. 17 src = fetchFromGitHub { 18 owner = "gravitational"; 19 repo = "teleport"; 20 rev = "v${version}"; 21 + sha256 = "sha256-4ZaebTTgGrGRQbMfDw1PL/qtDKmHbSY6kPmWyFeIcAU="; 22 }; 23 24 + vendorSha256 = null; 25 26 subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ]; 27 ··· 29 30 postBuild = '' 31 pushd . 32 mkdir -p build 33 echo "making webassets" 34 cp -r ${webassets}/* webassets/ ··· 40 popd 41 ''; 42 43 + # Do not strip the embedded web assets 44 + dontStrip = true; 45 + 46 # Reduce closure size for client machines 47 outputs = [ "out" "client" ]; 48 49 buildTargets = [ "full" ]; 50 51 + preCheck = '' 52 + export HOME=$(mktemp -d) 53 + ''; 54 + 55 postInstall = '' 56 install -Dm755 -t $client/bin $out/bin/tsh 57 + wrapProgram $client/bin/tsh --prefix PATH : ${xdg-utils}/bin 58 wrapProgram $out/bin/tsh --prefix PATH : ${xdg-utils}/bin 59 ''; 60 ··· 69 70 meta = with lib; { 71 description = "A SSH CA management suite"; 72 + homepage = "https://goteleport.com/"; 73 license = licenses.asl20; 74 maintainers = with maintainers; [ sigma tomberek freezeboy ]; 75 platforms = platforms.unix;