2021-01-22 00:10:12 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.mpv = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.mpvDummy;
|
|
|
|
scripts = [ pkgs.mpvScript ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
2021-06-23 00:19:41 +02:00
|
|
|
mpv-unwrapped = pkgs.runCommandLocal "mpv" {
|
|
|
|
version = "0";
|
|
|
|
passthru = {
|
|
|
|
lua.luaversion = "0";
|
|
|
|
luaEnv = "/dummy";
|
|
|
|
vapoursynthSupport = false;
|
|
|
|
};
|
|
|
|
} ''
|
|
|
|
mkdir -p $out/bin $out/Applications/mpv.app/Contents/MacOS
|
|
|
|
touch $out/bin/{,u}mpv $out/Applications/mpv.app/Contents/MacOS/mpv
|
|
|
|
chmod 755 $out/bin/{,u}mpv $out/Applications/mpv.app/Contents/MacOS/mpv
|
|
|
|
'';
|
2021-09-26 11:08:45 +02:00
|
|
|
mpvDummy = config.lib.test.mkStubPackage { };
|
2021-01-22 00:10:12 +01:00
|
|
|
mpvScript =
|
|
|
|
pkgs.runCommandLocal "mpvScript" { scriptName = "something"; }
|
|
|
|
"mkdir $out";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-02-07 21:52:16 +01:00
|
|
|
test.asserts.assertions.expected = [
|
|
|
|
''
|
|
|
|
The programs.mpv "package" option is mutually exclusive with "scripts" option.''
|
|
|
|
];
|
2021-01-22 00:10:12 +01:00
|
|
|
};
|
|
|
|
}
|