@@ -41,21 +41,29 @@ buildGoPackage rec {
4141 popd
4242 '';
4343
44− dontStrip = true;
44+ # Reduce closure size for client machines
45+ outputs = [ "out" "client" ];
46+
47+ buildTargets = [ "full" ];
48+
49+ postInstall = ''
50+ install -Dm755 -t $client/bin $out/bin/tsh
51+ '';
4552
4653 doInstallCheck = true;
4754
4855 installCheckPhase = ''
4956 $out/bin/tsh version | grep ${version} > /dev/null
57+ $client/bin/tsh version | grep ${version} > /dev/null
5058 $out/bin/tctl version | grep ${version} > /dev/null
5159 $out/bin/teleport version | grep ${version} > /dev/null
5260 '';
5361
54− meta = {
62+ meta = with lib; {
5563 description = "A SSH CA management suite";
5664 homepage = "https://gravitational.com/teleport/";
57− license = lib.licenses.asl20;
58− maintainers = with lib.maintainers; [ sigma tomberek ];
59− platforms = lib.platforms.unix;
65+ license = licenses.asl20;
66+ maintainers = with maintainers; [ sigma tomberek freezeboy ];
67+ platforms = platforms.unix;
6068 };
6169}