From dd0d6b35fe27b0ccc5c41654564cfbd910c54e95 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= <gutyina.gergo.2@gmail.com>
Date: Fri, 15 Nov 2024 06:58:48 +0100
Subject: [PATCH] termscp: disable failing darwin tests

---
 pkgs/by-name/te/termscp/package.nix | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/pkgs/by-name/te/termscp/package.nix b/pkgs/by-name/te/termscp/package.nix
index 7c0435b96886f..076d11b29722f 100644
--- a/pkgs/by-name/te/termscp/package.nix
+++ b/pkgs/by-name/te/termscp/package.nix
@@ -1,5 +1,6 @@
 {
   lib,
+  stdenvNoCC,
   dbus,
   fetchFromGitHub,
   openssl,
@@ -42,12 +43,17 @@ rustPlatform.buildRustPackage rec {
   doInstallCheck = true;
 
   checkFeatures = [ "isolated-tests" ];
-  checkFlags = [
-    # requires networking
-    "--skip=cli::remote::test::test_should_make_remote_args_from_one_bookmark_and_one_remote_with_local_dir"
-    "--skip=cli::remote::test::test_should_make_remote_args_from_two_bookmarks_and_local_dir"
-    "--skip=cli::remote::test::test_should_make_remote_args_from_two_remotes_and_local_dir"
-  ];
+  checkFlags =
+    [
+      # requires networking
+      "--skip=cli::remote::test::test_should_make_remote_args_from_one_bookmark_and_one_remote_with_local_dir"
+      "--skip=cli::remote::test::test_should_make_remote_args_from_two_bookmarks_and_local_dir"
+      "--skip=cli::remote::test::test_should_make_remote_args_from_two_remotes_and_local_dir"
+    ]
+    ++ lib.optionals stdenvNoCC.isDarwin [
+      "--skip=system::watcher::test::should_poll_file_removed"
+      "--skip=system::watcher::test::should_poll_file_update"
+    ];
 
   passthru = {
     updateScript = nix-update-script { };