teleport: wrap tsh with xdg-utils

This commit is contained in:
Yurii Matsiuk 2021-04-08 12:12:59 +02:00
parent 88cd2147cf
commit 2fca2fcb22
No known key found for this signature in database
GPG Key ID: 61302290298601AA

View File

@ -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;