2021-07-02 22:36:30 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.mpv = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.mpvDummy;
|
|
|
|
scripts = [ pkgs.mpvScript ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
mpvScript =
|
|
|
|
pkgs.runCommandLocal "mpvScript" { scriptName = "something"; }
|
|
|
|
"mkdir $out";
|
|
|
|
})
|
|
|
|
];
|
2023-08-08 10:19:01 +00:00
|
|
|
test.stubs.mpvDummy = { };
|
2021-07-02 22:36:30 +00:00
|
|
|
|
|
|
|
test.asserts.assertions.expected = [
|
|
|
|
''
|
|
|
|
The programs.mpv "package" option is mutually exclusive with "scripts" option.''
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|