@@ -1,5 +1,5 @@
11# 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 }:
33let
44 webassets = fetchFromGitHub {
55 owner = "gravitational";
@@ -25,7 +25,7 @@ buildGoPackage rec {
2525
2626 subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
2727
28− nativeBuildInputs = [ zip ];
28+ nativeBuildInputs = [ zip makeWrapper ];
2929
3030 postBuild = ''
3131 pushd .
@@ -48,6 +48,7 @@ buildGoPackage rec {
4848
4949 postInstall = ''
5050 install -Dm755 -t $client/bin $out/bin/tsh
51+ wrapProgram $out/bin/tsh --prefix PATH : ${xdg-utils}/bin
5152 '';
5253
5354 doInstallCheck = true;