mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
teleport: 9.1.2 -> 10.3.1
Dropped the roletester since it doesn't exist anymore Co-authored-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
59d2991d42
commit
becacf259d
@ -528,6 +528,16 @@
|
|||||||
<literal>services.datadog-agent</literal> module.
|
<literal>services.datadog-agent</literal> module.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
<literal>teleport</literal> has been upgraded to major version
|
||||||
|
10. Please see upstream
|
||||||
|
<link xlink:href="https://goteleport.com/docs/ver/10.0/management/operations/upgrading/">upgrade
|
||||||
|
instructions</link> and
|
||||||
|
<link xlink:href="https://goteleport.com/docs/ver/10.0/changelog/#1000">release
|
||||||
|
notes</link>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
lemmy module option
|
lemmy module option
|
||||||
|
@ -179,6 +179,8 @@ Available as [services.patroni](options.html#opt-services.patroni.enable).
|
|||||||
|
|
||||||
- dd-agent package removed along with the `services.dd-agent` module, due to the project being deprecated in favor of `datadog-agent`, which is available via the `services.datadog-agent` module.
|
- dd-agent package removed along with the `services.dd-agent` module, due to the project being deprecated in favor of `datadog-agent`, which is available via the `services.datadog-agent` module.
|
||||||
|
|
||||||
|
- `teleport` has been upgraded to major version 10. Please see upstream [upgrade instructions](https://goteleport.com/docs/ver/10.0/management/operations/upgrading/) and [release notes](https://goteleport.com/docs/ver/10.0/changelog/#1000).
|
||||||
|
|
||||||
- lemmy module option `services.lemmy.settings.database.createLocally`
|
- lemmy module option `services.lemmy.settings.database.createLocally`
|
||||||
moved to `services.lemmy.database.createLocally`.
|
moved to `services.lemmy.database.createLocally`.
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
, nixosTests
|
, nixosTests
|
||||||
|
|
||||||
, withRdpClient ? true
|
, withRdpClient ? true
|
||||||
, withRoleTester ? true
|
|
||||||
}:
|
}:
|
||||||
let
|
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.
|
||||||
@ -22,13 +21,13 @@ let
|
|||||||
owner = "gravitational";
|
owner = "gravitational";
|
||||||
repo = "teleport";
|
repo = "teleport";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-KQfdeMuZ9LJHhEJLMl58Yb0+gxgDT7VcVnK1JxjVZaI=";
|
hash = "sha256-F5v3/eKPLhSxW7FImTbE+QMtfn8w5WVTrxMWhgNr3YA=";
|
||||||
};
|
};
|
||||||
version = "9.1.2";
|
version = "10.3.1";
|
||||||
|
|
||||||
rdpClient = rustPlatform.buildRustPackage rec {
|
rdpClient = rustPlatform.buildRustPackage rec {
|
||||||
name = "teleport-rdpclient";
|
pname = "teleport-rdpclient";
|
||||||
cargoSha256 = "sha256-Jz7bB/f4HRxBhSevmfELSrIm+IXUVlADIgp2qWQd5PY=";
|
cargoHash = "sha256-Xmabjoq1NXxXemeR06Gg8R/HwdSE+rsxxX645pQ3SuI=";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
|
|
||||||
buildAndTestSubdir = "lib/srv/desktop/rdp/rdpclient";
|
buildAndTestSubdir = "lib/srv/desktop/rdp/rdpclient";
|
||||||
@ -44,42 +43,28 @@ let
|
|||||||
OPENSSL_NO_VENDOR = "1";
|
OPENSSL_NO_VENDOR = "1";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
cp -r target $out
|
mkdir -p $out/include
|
||||||
'';
|
cp ${buildAndTestSubdir}/librdprs.h $out/include/
|
||||||
};
|
|
||||||
|
|
||||||
roleTester = rustPlatform.buildRustPackage {
|
|
||||||
name = "teleport-roletester";
|
|
||||||
inherit version src;
|
|
||||||
|
|
||||||
cargoSha256 = "sha256-gCm4ETbXy6tGJQVSzUkoAWUmKD3poYgkw133LtziASI=";
|
|
||||||
buildAndTestSubdir = "lib/datalog/roletester";
|
|
||||||
|
|
||||||
PROTOC = "${protobuf}/bin/protoc";
|
|
||||||
PROTOC_INCLUDE = "${protobuf}/include";
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
cp -r target $out
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
webassets = fetchFromGitHub {
|
webassets = fetchFromGitHub {
|
||||||
owner = "gravitational";
|
owner = "gravitational";
|
||||||
repo = "webassets";
|
repo = "webassets";
|
||||||
rev = "67e608db77300d8a6cb17709be67f12c1d3271c3";
|
# Submodule rev from https://github.com/gravitational/teleport/tree/v10.3.1
|
||||||
sha256 = "sha256-o4qjXGaNi5XDSUQrUuU+G77EdRnvJ1WUPWrryZU1CUE=";
|
rev = "6710dcd0dc19ad101bac3259c463ef940f2ab1f3";
|
||||||
|
hash = "sha256-A13FSpgJODmhugAwy4kqiDw4Rihr//DhQX/bjwaeo2A=";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "teleport";
|
pname = "teleport";
|
||||||
|
|
||||||
inherit src version;
|
inherit src version;
|
||||||
vendorSha256 = "sha256-UMgWM7KHag99JR4i4mwVHa6yd9aHQ6Dy+pmUijNL4Ew=";
|
vendorHash = "sha256-2Zrd3CbZvxns9lNVtwaaor1mi97IhPc+MRJhj3rU760=";
|
||||||
|
|
||||||
subPackages = [ "tool/tbot" "tool/tctl" "tool/teleport" "tool/tsh" ];
|
subPackages = [ "tool/tbot" "tool/tctl" "tool/teleport" "tool/tsh" ];
|
||||||
tags = [ "webassets_embed" ]
|
tags = [ "webassets_embed" ]
|
||||||
++ lib.optional withRdpClient "desktop_access_rdp"
|
++ lib.optional withRdpClient "desktop_access_rdp";
|
||||||
++ lib.optional withRoleTester "roletester";
|
|
||||||
|
|
||||||
buildInputs = [ openssl ]
|
buildInputs = [ openssl ]
|
||||||
++ lib.optionals (stdenv.isDarwin && withRdpClient) [ CoreFoundation Security ];
|
++ lib.optionals (stdenv.isDarwin && withRdpClient) [ CoreFoundation Security ];
|
||||||
@ -97,31 +82,26 @@ buildGoModule rec {
|
|||||||
# Reduce closure size for client machines
|
# Reduce closure size for client machines
|
||||||
outputs = [ "out" "client" ];
|
outputs = [ "out" "client" ];
|
||||||
|
|
||||||
preBuild =
|
preBuild = ''
|
||||||
let rustDeps = symlinkJoin {
|
mkdir -p build
|
||||||
name = "teleport-rust-deps";
|
echo "making webassets"
|
||||||
paths = lib.optional withRdpClient rdpClient
|
cp -r ${webassets}/* webassets/
|
||||||
++ lib.optional withRoleTester roleTester;
|
make -j$NIX_BUILD_CORES lib/web/build/webassets
|
||||||
};
|
'' + lib.optionalString withRdpClient ''
|
||||||
in
|
ln -s ${rdpClient}/lib/* lib/
|
||||||
''
|
ln -s ${rdpClient}/include/* lib/srv/desktop/rdp/rdpclient/
|
||||||
mkdir -p build
|
'';
|
||||||
echo "making webassets"
|
|
||||||
cp -r ${webassets}/* webassets/
|
|
||||||
make lib/web/build/webassets
|
|
||||||
|
|
||||||
cp -r ${rustDeps}/. .
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Multiple tests fail in the build sandbox
|
# Multiple tests fail in the build sandbox
|
||||||
# due to trying to spawn nixbld's shell (/noshell), etc.
|
# due to trying to spawn nixbld's shell (/noshell), etc.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm755 -t $client/bin $out/bin/tsh
|
mkdir -p $client/bin
|
||||||
|
mv {$out,$client}/bin/tsh
|
||||||
# make xdg-open overrideable at runtime
|
# make xdg-open overrideable at runtime
|
||||||
wrapProgram $client/bin/tsh --suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
|
wrapProgram $client/bin/tsh --suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
|
||||||
wrapProgram $out/bin/tsh --suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
|
ln -s {$client,$out}/bin/tsh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
@ -1,17 +1,22 @@
|
|||||||
diff --git a/lib/srv/desktop/rdp/rdpclient/client.go b/lib/srv/desktop/rdp/rdpclient/client.go
|
diff --git a/lib/srv/desktop/rdp/rdpclient/client.go b/lib/srv/desktop/rdp/rdpclient/client.go
|
||||||
index d191c768f..71117a30d 100644
|
index 4357d7aa1..7e21a0076 100644
|
||||||
--- a/lib/srv/desktop/rdp/rdpclient/client.go
|
--- a/lib/srv/desktop/rdp/rdpclient/client.go
|
||||||
+++ b/lib/srv/desktop/rdp/rdpclient/client.go
|
+++ b/lib/srv/desktop/rdp/rdpclient/client.go
|
||||||
@@ -56,10 +56,10 @@ package rdpclient
|
@@ -52,14 +52,9 @@ package rdpclient
|
||||||
#cgo linux,amd64 LDFLAGS: -L${SRCDIR}/../../../../../target/x86_64-unknown-linux-gnu/release
|
|
||||||
#cgo linux,arm LDFLAGS: -L${SRCDIR}/../../../../../target/arm-unknown-linux-gnueabihf/release
|
/*
|
||||||
#cgo linux,arm64 LDFLAGS: -L${SRCDIR}/../../../../../target/aarch64-unknown-linux-gnu/release
|
// Flags to include the static Rust library.
|
||||||
|
-#cgo linux,386 LDFLAGS: -L${SRCDIR}/../../../../../target/i686-unknown-linux-gnu/release
|
||||||
|
-#cgo linux,amd64 LDFLAGS: -L${SRCDIR}/../../../../../target/x86_64-unknown-linux-gnu/release
|
||||||
|
-#cgo linux,arm LDFLAGS: -L${SRCDIR}/../../../../../target/arm-unknown-linux-gnueabihf/release
|
||||||
|
-#cgo linux,arm64 LDFLAGS: -L${SRCDIR}/../../../../../target/aarch64-unknown-linux-gnu/release
|
||||||
-#cgo linux LDFLAGS: -l:librdp_client.a -lpthread -ldl -lm
|
-#cgo linux LDFLAGS: -l:librdp_client.a -lpthread -ldl -lm
|
||||||
+#cgo linux LDFLAGS: -l:librdp_client.a -lpthread -ldl -lm -lssl -lcrypto
|
-#cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/../../../../../target/x86_64-apple-darwin/release
|
||||||
#cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/../../../../../target/x86_64-apple-darwin/release
|
-#cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/../../../../../target/aarch64-apple-darwin/release
|
||||||
#cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/../../../../../target/aarch64-apple-darwin/release
|
|
||||||
-#cgo darwin LDFLAGS: -framework CoreFoundation -framework Security -lrdp_client -lpthread -ldl -lm
|
-#cgo darwin LDFLAGS: -framework CoreFoundation -framework Security -lrdp_client -lpthread -ldl -lm
|
||||||
+#cgo darwin LDFLAGS: -framework CoreFoundation -framework Security -lrdp_client -lpthread -ldl -lm -lssl -lcrypto
|
+#cgo LDFLAGS: -L${SRCDIR}/../../../../../lib -lpthread -ldl -lm -lssl -lcrypto
|
||||||
|
+#cgo linux LDFLAGS: -l:librdp_client.a
|
||||||
|
+#cgo darwin LDFLAGS: -framework CoreFoundation -framework Security -lrdp_client
|
||||||
#include <librdprs.h>
|
#include <librdprs.h>
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
Loading…
Reference in New Issue
Block a user