From 07ec624b825abeccb0210c664d623ebb5fd1c07d Mon Sep 17 00:00:00 2001 From: Jost Alemann Date: Wed, 8 Jul 2026 17:51:56 +0200 Subject: [PATCH 1/2] teamtype: 0.9.1 -> 0.9.2 Changelog: https://github.com/teamtype/teamtype/releases/tag/v0.9.2 Diff: https://github.com/teamtype/teamtype/compare/v0.9.1...v0.9.2 --- pkgs/by-name/te/teamtype/package.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/te/teamtype/package.nix b/pkgs/by-name/te/teamtype/package.nix index 0cc194af9771..48a847e1075e 100644 --- a/pkgs/by-name/te/teamtype/package.nix +++ b/pkgs/by-name/te/teamtype/package.nix @@ -11,18 +11,16 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "teamtype"; - version = "0.9.1"; + version = "0.9.2"; src = fetchFromGitHub { owner = "teamtype"; repo = "teamtype"; tag = "v${finalAttrs.version}"; - hash = "sha256-74MufpLTACkPevzOyaXw2Rr7S7VvaFEYHEyTQYwKVT8="; + hash = "sha256-FsT1ako/3EIPynWuBqCSiwaZtMnsd7ypJnrh+4EDRwM="; }; - sourceRoot = "${finalAttrs.src.name}/daemon"; - - cargoHash = "sha256-OIOffnCC9PlT/SXPOuTnKx3feZnkHP+jzbQIJWX0tzk="; + cargoHash = "sha256-gphTpVKbmfYJSUasOCtNgyMKI9JU/if8KcH7Lu3Svjs="; nativeBuildInputs = [ installShellFiles @@ -52,6 +50,16 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; + # E2E Tests fail reporting: + # Before running e2e tests you must build /build/source/target/debug/teamtype + checkFlags = [ + "--skip=nvim_processes_deltas_correctly" + "--skip=nvim_sends_correct_delta" + "--skip=nvim_sends_something_to_socket" + "--skip=plugin_loaded" + "--skip=teamtype_executable_from_nvim" + ]; + passthru.updateScript = nix-update-script { }; meta = { From 741c1daf0169394a73134fd1d4147709972f26af Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Tue, 18 Aug 2026 19:06:17 +0530 Subject: [PATCH 2/2] teamtype: run all checks on release binary Signed-off-by: phanirithvij --- pkgs/by-name/te/teamtype/package.nix | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/te/teamtype/package.nix b/pkgs/by-name/te/teamtype/package.nix index 48a847e1075e..00ed60400419 100644 --- a/pkgs/by-name/te/teamtype/package.nix +++ b/pkgs/by-name/te/teamtype/package.nix @@ -1,12 +1,15 @@ { fetchFromGitHub, lib, + stdenv, rustPlatform, versionCheckHook, installShellFiles, nix-update-script, pkg-config, libgit2, + neovim, + writableTmpDirAsHomeHook, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -50,14 +53,19 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; - # E2E Tests fail reporting: - # Before running e2e tests you must build /build/source/target/debug/teamtype - checkFlags = [ - "--skip=nvim_processes_deltas_correctly" - "--skip=nvim_sends_correct_delta" - "--skip=nvim_sends_something_to_socket" - "--skip=plugin_loaded" - "--skip=teamtype_executable_from_nvim" + nativeCheckInputs = [ + neovim + writableTmpDirAsHomeHook + ]; + + preCheck = '' + substituteInPlace .cargo/config.toml \ + --replace-fail 'target/debug/teamtype' 'target/${stdenv.hostPlatform.rust.rustcTarget}/release/teamtype' + ''; + + # watcher tests use FSEvents which hangs in the macOS sandbox + checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [ + "--skip=watcher::" ]; passthru.updateScript = nix-update-script { };