mpv: add 'extraMakeWrapperArgs'

This commit is contained in:
Bruno BELANYI 2026-02-20 11:59:18 +00:00 committed by Austin Horstman
parent 14e98b1d96
commit dcfc84871c
4 changed files with 51 additions and 3 deletions

View file

@ -3,4 +3,5 @@
mpv-example-settings = ./mpv-example-settings.nix;
mpv-invalid-settings = ./mpv-invalid-settings.nix;
mpv-scripts = ./mpv-scripts.nix;
mpv-extra-wrapper-args = ./mpv-extra-wrapper-args.nix;
}

View file

@ -0,0 +1,27 @@
{
lib,
pkgs,
...
}:
{
imports = [ ./stubs.nix ];
programs.mpv = {
enable = true;
extraMakeWrapperArgs = [
"--prefix"
"LD_LIBRARY_PATH"
":"
(lib.makeLibraryPath [
pkgs.libaacs
pkgs.libbluray
])
];
};
nmt.script = ''
mpvbin="home-path/bin/mpv"
assertFileRegex "$mpvbin" 'LD_LIBRARY_PATH'
'';
}

View file

@ -13,6 +13,6 @@
};
test.asserts.assertions.expected = [
''The programs.mpv "package" option is mutually exclusive with "scripts" option.''
''The programs.mpv "package" option is mutually exclusive with "scripts", "extraMakeWrapperArgs" options.''
];
}