mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
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:
parent
f45bf7d6a6
commit
a01b51d00b
12 changed files with 24 additions and 75 deletions
|
@ -472,7 +472,7 @@ pkgs/development/interpreters/lfe/ @NixOS/beam
|
|||
pkgs/by-name/oc/octodns/ @anthonyroussel
|
||||
|
||||
# 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
|
||||
pkgs/by-name/wa/warp-terminal/ @emilytrau @imadnyc @donteatoreo @johnrtitor
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
buildGo123Module,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
|
@ -15,18 +15,18 @@
|
|||
rustc,
|
||||
stdenv,
|
||||
xdg-utils,
|
||||
wasm-bindgen-cli,
|
||||
wasm-bindgen-cli_0_2_95,
|
||||
wasm-pack,
|
||||
nixosTests,
|
||||
|
||||
withRdpClient ? true,
|
||||
|
||||
version,
|
||||
hash,
|
||||
vendorHash,
|
||||
version ? "17.4.8",
|
||||
hash ? "sha256-BMiV4xMDy/21B2kl/vkXD14LKQ9t/qj6K8HFnU9Td7w=",
|
||||
vendorHash ? "sha256-/JP0/4fFdCuDFLQ+mh7CQNMJ4n3yDNyvnLfbmRl/TBA=",
|
||||
extPatches ? [ ],
|
||||
cargoHash,
|
||||
pnpmHash,
|
||||
cargoHash ? "sha256-qz8gkooQTuBlPWC4lHtvBQpKkd+nEZ0Hl7AVg9JkPqs=",
|
||||
pnpmHash ? "sha256-TZb1nABTbR+SPgykc/KMRkHW7oLawem6KWmdOFAbLbk=",
|
||||
}:
|
||||
let
|
||||
# This repo has a private submodule "e" which fetchgit cannot handle without failing.
|
||||
|
@ -84,7 +84,7 @@ let
|
|||
rustc
|
||||
rustc.llvmPackages.lld
|
||||
rustPlatform.cargoSetupHook
|
||||
wasm-bindgen-cli
|
||||
wasm-bindgen-cli_0_2_95
|
||||
wasm-pack
|
||||
];
|
||||
|
||||
|
@ -120,7 +120,7 @@ let
|
|||
'';
|
||||
};
|
||||
in
|
||||
buildGoModule (finalAttrs: {
|
||||
buildGo123Module (finalAttrs: {
|
||||
inherit pname src version;
|
||||
inherit vendorHash;
|
||||
proxyVendor = true;
|
10
pkgs/by-name/te/teleport_16/package.nix
Normal file
10
pkgs/by-name/te/teleport_16/package.nix
Normal 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";
|
||||
}
|
4
pkgs/by-name/te/teleport_17/package.nix
Normal file
4
pkgs/by-name/te/teleport_17/package.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
teleport,
|
||||
}:
|
||||
teleport
|
|
@ -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";
|
||||
}
|
||||
)
|
|
@ -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=";
|
||||
}
|
||||
)
|
|
@ -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"
|
||||
]
|
||||
)
|
|
@ -4532,14 +4532,6 @@ with pkgs;
|
|||
|
||||
teamviewer = libsForQt5.callPackage ../applications/networking/remote/teamviewer { };
|
||||
|
||||
inherit
|
||||
(callPackages ../servers/teleport {
|
||||
})
|
||||
teleport_16
|
||||
teleport_17
|
||||
teleport
|
||||
;
|
||||
|
||||
telepresence = callPackage ../tools/networking/telepresence {
|
||||
pythonPackages = python3Packages;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue