From 08f10a21e393a779092dd19666eab7c8a01c6814 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Tue, 1 Oct 2024 13:08:31 -0300 Subject: [PATCH] rio: Restrict test execution inside nixosTests for Linux devices Restrict test execution inside nixosTests for Linux devices as ofborg 'passthru.tests' nixosTests are failing on Darwin architectures. Ref: https://github.com/NixOS/nixpkgs/issues/345825 Signed-off-by: Otavio Salvador --- pkgs/applications/terminal-emulators/rio/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/terminal-emulators/rio/default.nix b/pkgs/applications/terminal-emulators/rio/default.nix index 6e74b42fcbb4f..daea4128935c4 100644 --- a/pkgs/applications/terminal-emulators/rio/default.nix +++ b/pkgs/applications/terminal-emulators/rio/default.nix @@ -112,8 +112,13 @@ rustPlatform.buildRustPackage rec { }; tests = { - test = nixosTests.terminal-emulators.rio; version = testers.testVersion { package = rio; }; + } // lib.optionalAttrs stdenv.buildPlatform.isLinux { + # FIXME: Restrict test execution inside nixosTests for Linux devices as ofborg + # 'passthru.tests' nixosTests are failing on Darwin architectures. + # + # Ref: https://github.com/NixOS/nixpkgs/issues/345825 + test = nixosTests.terminal-emulators.rio; }; };