git.iko.soy/typeable/nixpkgs
on master help sign in
teleport: wrap tsh with xdg-utils
2fca2fcYurii Matsiuk
pkgs/servers/teleport/default.nix+3−2
@@ -1,5 +1,5 @@
1# This file was generated by https://github.com/kamilchm/go2nix v2.0-dev
1# 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 }:
3let
3let
4 webassets = fetchFromGitHub {
4 webassets = fetchFromGitHub {
5 owner = "gravitational";
5 owner = "gravitational";
@@ -25,7 +25,7 @@ buildGoPackage rec {
25
25
26 subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
26 subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
27
27
28− nativeBuildInputs = [ zip ];
28+ nativeBuildInputs = [ zip makeWrapper ];
29
29
30 postBuild = ''
30 postBuild = ''
31 pushd .
31 pushd .
@@ -48,6 +48,7 @@ buildGoPackage rec {
48
48
49 postInstall = ''
49 postInstall = ''
50 install -Dm755 -t $client/bin $out/bin/tsh
50 install -Dm755 -t $client/bin $out/bin/tsh
51+ wrapProgram $out/bin/tsh --prefix PATH : ${xdg-utils}/bin
51 '';
52 '';
52
53
53 doInstallCheck = true;
54 doInstallCheck = true;