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:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user