@@ -1,5 +1,5 @@
1# This file was generated by https://github.com/kamilchm/go2nix v2.0-dev
1# This file was generated by https://github.com/kamilchm/go2nix v2.0-dev
2−{ lib, buildGoPackage, zip, fetchFromGitHub }:
2+{ lib, buildGoPackage, zip, fetchFromGitHub, makeWrapper, xdg-utils }:
4 webassets = fetchFromGitHub {
4 webassets = fetchFromGitHub {
5 owner = "gravitational";
5 owner = "gravitational";
@@ -25,7 +25,7 @@ buildGoPackage rec {
26 subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
26 subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
28− nativeBuildInputs = [ zip ];
28+ nativeBuildInputs = [ zip makeWrapper ];
30 postBuild = ''
30 postBuild = ''
@@ -48,6 +48,7 @@ buildGoPackage rec {
49 postInstall = ''
49 postInstall = ''
50 install -Dm755 -t $client/bin $out/bin/tsh
50 install -Dm755 -t $client/bin $out/bin/tsh
51+ wrapProgram $out/bin/tsh --prefix PATH : ${xdg-utils}/bin
53 doInstallCheck = true;
54 doInstallCheck = true;