teleport: move to by-name

Make teleport built by the by-name structure in package.nix.
The versioned attributes are defined in their own package.nix
in by-name using overrides.
Also change reference in ci/OWNERS
This commit is contained in:
JuliusFreudenberger 2025-04-27 22:02:49 +03:00 committed by Thomas Bereknyei
parent f45bf7d6a6
commit a01b51d00b
12 changed files with 24 additions and 75 deletions

View file

@ -472,7 +472,7 @@ pkgs/development/interpreters/lfe/ @NixOS/beam
pkgs/by-name/oc/octodns/ @anthonyroussel pkgs/by-name/oc/octodns/ @anthonyroussel
# Teleport # Teleport
pkgs/servers/teleport @arianvp @justinas @sigma @tomberek @freezeboy @techknowlogick @JuliusFreudenberger pkgs/by-name/te/teleport* @arianvp @justinas @sigma @tomberek @freezeboy @techknowlogick @JuliusFreudenberger
# Warp-terminal # Warp-terminal
pkgs/by-name/wa/warp-terminal/ @emilytrau @imadnyc @donteatoreo @johnrtitor pkgs/by-name/wa/warp-terminal/ @emilytrau @imadnyc @donteatoreo @johnrtitor

View file

@ -1,6 +1,6 @@
{ {
lib, lib,
buildGoModule, buildGo123Module,
rustPlatform, rustPlatform,
fetchFromGitHub, fetchFromGitHub,
fetchpatch, fetchpatch,
@ -15,18 +15,18 @@
rustc, rustc,
stdenv, stdenv,
xdg-utils, xdg-utils,
wasm-bindgen-cli, wasm-bindgen-cli_0_2_95,
wasm-pack, wasm-pack,
nixosTests, nixosTests,
withRdpClient ? true, withRdpClient ? true,
version, version ? "17.4.8",
hash, hash ? "sha256-BMiV4xMDy/21B2kl/vkXD14LKQ9t/qj6K8HFnU9Td7w=",
vendorHash, vendorHash ? "sha256-/JP0/4fFdCuDFLQ+mh7CQNMJ4n3yDNyvnLfbmRl/TBA=",
extPatches ? [ ], extPatches ? [ ],
cargoHash, cargoHash ? "sha256-qz8gkooQTuBlPWC4lHtvBQpKkd+nEZ0Hl7AVg9JkPqs=",
pnpmHash, pnpmHash ? "sha256-TZb1nABTbR+SPgykc/KMRkHW7oLawem6KWmdOFAbLbk=",
}: }:
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.
@ -84,7 +84,7 @@ let
rustc rustc
rustc.llvmPackages.lld rustc.llvmPackages.lld
rustPlatform.cargoSetupHook rustPlatform.cargoSetupHook
wasm-bindgen-cli wasm-bindgen-cli_0_2_95
wasm-pack wasm-pack
]; ];
@ -120,7 +120,7 @@ let
''; '';
}; };
in in
buildGoModule (finalAttrs: { buildGo123Module (finalAttrs: {
inherit pname src version; inherit pname src version;
inherit vendorHash; inherit vendorHash;
proxyVendor = true; proxyVendor = true;

View file

@ -0,0 +1,10 @@
{
teleport,
}:
teleport.override {
version = "16.5.9";
hash = "sha256-lIWJV3AQ+XWApfjtdUL8ZlHAXCyvwVAGsZjjvXul36I=";
vendorHash = "sha256-DdVBtMwz0AIGCYj/QLczG8GPP9mqKrdF+M0NqmM6J0I=";
pnpmHash = "sha256-JQca2eFxcKJDHIaheJBg93ivZU95UWMRgbcK7QE4R10=";
cargoHash = "sha256-04zykCcVTptEPGy35MIWG+tROKFzEepLBmn04mSbt7I";
}

View file

@ -0,0 +1,4 @@
{
teleport,
}:
teleport

View file

@ -1,11 +0,0 @@
args:
import ../generic.nix (
args
// {
version = "16.5.9";
hash = "sha256-lIWJV3AQ+XWApfjtdUL8ZlHAXCyvwVAGsZjjvXul36I=";
vendorHash = "sha256-DdVBtMwz0AIGCYj/QLczG8GPP9mqKrdF+M0NqmM6J0I=";
pnpmHash = "sha256-JQca2eFxcKJDHIaheJBg93ivZU95UWMRgbcK7QE4R10=";
cargoHash = "sha256-04zykCcVTptEPGy35MIWG+tROKFzEepLBmn04mSbt7I";
}
)

View file

@ -1,11 +0,0 @@
{ wasm-bindgen-cli, ... }@args:
import ../generic.nix (
args
// {
version = "17.4.8";
hash = "sha256-BMiV4xMDy/21B2kl/vkXD14LKQ9t/qj6K8HFnU9Td7w=";
vendorHash = "sha256-/JP0/4fFdCuDFLQ+mh7CQNMJ4n3yDNyvnLfbmRl/TBA=";
pnpmHash = "sha256-TZb1nABTbR+SPgykc/KMRkHW7oLawem6KWmdOFAbLbk=";
cargoHash = "sha256-qz8gkooQTuBlPWC4lHtvBQpKkd+nEZ0Hl7AVg9JkPqs=";
}
)

View file

@ -1,35 +0,0 @@
{
callPackages,
lib,
wasm-bindgen-cli_0_2_95,
buildGo123Module,
...
}@args:
let
f = args: rec {
teleport_16 = import ./16 (
args
// {
wasm-bindgen-cli = wasm-bindgen-cli_0_2_95;
buildGoModule = buildGo123Module;
}
);
teleport_17 = import ./17 (
args
// {
wasm-bindgen-cli = wasm-bindgen-cli_0_2_95;
buildGoModule = buildGo123Module;
}
);
teleport = teleport_17;
};
# Ensure the following callPackages invocation includes everything 'generic' needs.
f' = lib.setFunctionArgs f (builtins.functionArgs (import ./generic.nix));
in
callPackages f' (
builtins.removeAttrs args [
"callPackages"
"wasm-bindgen-cli_0_2_95"
"buildGo123Module"
]
)

View file

@ -4532,14 +4532,6 @@ with pkgs;
teamviewer = libsForQt5.callPackage ../applications/networking/remote/teamviewer { }; teamviewer = libsForQt5.callPackage ../applications/networking/remote/teamviewer { };
inherit
(callPackages ../servers/teleport {
})
teleport_16
teleport_17
teleport
;
telepresence = callPackage ../tools/networking/telepresence { telepresence = callPackage ../tools/networking/telepresence {
pythonPackages = python3Packages; pythonPackages = python3Packages;
}; };