git.iko.soy/typeable/nixpkgs
on master help sign in
teleport: wrap tsh with xdg-utils
commit2fca2fcb229760544538b4d76e645d1a848fe5cd authorYurii Matsiuk <ymatsiuk@users.noreply.github.com> dateThu 8 Apr 2021, 12:12 (6 years ago) parent88cd214
1 file changed+3−2
pkgs/servers/teleport/default.nix+3−2
pkgs/servers/teleport/default.nix+3−2
@@ -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;