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 <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2024-10-01 13:08:31 -03:00
parent 9133b9f555
commit 08f10a21e3

View File

@ -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;
};
};