about summary refs log tree commit diff
path: root/pkgs/servers/teleport
diff options
context:
space:
mode:
authorYurii Matsiuk <ymatsiuk@users.noreply.github.com>2021-04-08 12:12:59 +0200
committerYurii Matsiuk <ymatsiuk@users.noreply.github.com>2021-04-08 12:12:59 +0200
commit2fca2fcb229760544538b4d76e645d1a848fe5cd (patch)
treea745e5ea8d9008d5db5134a9a56528ea85473d99 /pkgs/servers/teleport
parent88cd2147cf5fda54cc47fa725fc9ca22d8ebc70a (diff)
teleport: wrap tsh with xdg-utils
Diffstat (limited to 'pkgs/servers/teleport')
-rw-r--r--pkgs/servers/teleport/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/servers/teleport/default.nix b/pkgs/servers/teleport/default.nix
index 8650ff108ebae..8c6caab8f627f 100644
--- a/pkgs/servers/teleport/default.nix
+++ b/pkgs/servers/teleport/default.nix
@@ -1,5 +1,5 @@
 # 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";
@@ -25,7 +25,7 @@ buildGoPackage rec {
 
   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;