mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
teleport: wrap tsh with xdg-utils
This commit is contained in:
parent
88cd2147cf
commit
2fca2fcb22
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user