mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
teleport: 7.3.2 -> 8.0.6
This commit is contained in:
parent
de64ca6296
commit
191a0315bf
@ -1,28 +1,56 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, xdg-utils }:
|
{ lib
|
||||||
let
|
, buildGo117Module
|
||||||
webassets = fetchFromGitHub {
|
, rustPlatform
|
||||||
owner = "gravitational";
|
, fetchFromGitHub
|
||||||
repo = "webassets";
|
, makeWrapper
|
||||||
rev = "07493a5e78677de448b0e35bd72bf1dc6498b5ea";
|
, protobuf
|
||||||
sha256 = "sha256-V1vGGC8Q257iQMhxCBEBkZntt0ckppCJMCEr2Nqxo/M=";
|
, stdenv
|
||||||
};
|
, xdg-utils
|
||||||
in
|
|
||||||
buildGoModule rec {
|
|
||||||
pname = "teleport";
|
|
||||||
version = "7.3.2";
|
|
||||||
|
|
||||||
|
, withRoleTester ? true
|
||||||
|
}:
|
||||||
|
let
|
||||||
# This repo has a private submodule "e" which fetchgit cannot handle without failing.
|
# This repo has a private submodule "e" which fetchgit cannot handle without failing.
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gravitational";
|
owner = "gravitational";
|
||||||
repo = "teleport";
|
repo = "teleport";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-ZigVfz4P5bVn+5qApmLGlNmzU52ncFjkSbwbPOKI4MA=";
|
sha256 = "sha256-02Wsj2V7RNjKlkgAqj7IqyRGCxml8pw5h0vflqcGAB8=";
|
||||||
|
};
|
||||||
|
version = "8.0.6";
|
||||||
|
|
||||||
|
roleTester = rustPlatform.buildRustPackage {
|
||||||
|
name = "teleport-roletester";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
src = "${src}/lib/datalog";
|
||||||
|
cargoSha256 = "sha256-cpW7kel02t/fB2CvDvVqWlzgS3Vg2qLnemF/bW2Ii1A=";
|
||||||
|
sourceRoot = "datalog/roletester";
|
||||||
|
|
||||||
|
PROTOC = "${protobuf}/bin/protoc";
|
||||||
|
PROTOC_INCLUDE = "${protobuf}/include";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
cp -r target $out
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
webassets = fetchFromGitHub {
|
||||||
|
owner = "gravitational";
|
||||||
|
repo = "webassets";
|
||||||
|
rev = "240464d54ac498281592eb0b30c871dc3c7ce09b";
|
||||||
|
sha256 = "sha256-8gt8x2fNh8mA1KCop5dEZmpBWBu7HsrTY5zVUlmKDgs=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
buildGo117Module rec {
|
||||||
|
pname = "teleport";
|
||||||
|
|
||||||
|
inherit src version;
|
||||||
vendorSha256 = null;
|
vendorSha256 = null;
|
||||||
|
|
||||||
subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
|
subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
|
||||||
tags = [ "webassets_embed" ];
|
tags = [ "webassets_embed" ] ++
|
||||||
|
lib.optional withRoleTester "roletester";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
@ -41,8 +69,13 @@ buildGoModule rec {
|
|||||||
echo "making webassets"
|
echo "making webassets"
|
||||||
cp -r ${webassets}/* webassets/
|
cp -r ${webassets}/* webassets/
|
||||||
make lib/web/build/webassets
|
make lib/web/build/webassets
|
||||||
|
|
||||||
|
${lib.optionalString withRoleTester
|
||||||
|
"cp -r ${roleTester}/target lib/datalog/roletester/."}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
'';
|
'';
|
||||||
@ -63,7 +96,7 @@ buildGoModule rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A SSH CA management suite";
|
description = "Certificate authority and access plane for SSH, Kubernetes, web applications, and databases";
|
||||||
homepage = "https://goteleport.com/";
|
homepage = "https://goteleport.com/";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ sigma tomberek freezeboy ];
|
maintainers = with maintainers; [ sigma tomberek freezeboy ];
|
||||||
|
Loading…
Reference in New Issue
Block a user