0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-09-28 01:29:03 +03:00

nix: introduce tests

Introduce set of tests based on NixOS test framework.
This commit is contained in:
Yury Shvedov
2025-03-09 16:13:18 +03:00
parent d45af61f82
commit 30847e331a
6 changed files with 218 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
{
yandex-music-with,
isHm ? false,
isTest ? false,
}:
{
lib,
@@ -13,14 +14,18 @@ let
in
{
/*
The NixOS test framework disallow to extend `nixpkgs.overlays` configuration
option, so we make it here conditionally.
*/
imports = [
{
(lib.mkIf (!isTest) {
nixpkgs.overlays = [
(final: prev: {
yandex-music = yandex-music-with prev;
})
];
}
})
];
options = {