svp: adapt to the new mpv wrapper

This commit is contained in:
Anderson Torres 2024-05-22 17:13:48 -03:00
parent 0a3717ab41
commit 238d981213

View File

@ -1,24 +1,16 @@
{ lib { lib
, mpv-unwrapped , mpv-unwrapped
, wrapMpv
, ocl-icd , ocl-icd
, ... , ...
}: }:
let
libraries = [ mpv-unwrapped.wrapper {
ocl-icd mpv = mpv-unwrapped.override { vapoursynthSupport = true; };
];
in
wrapMpv
(mpv-unwrapped.override {
vapoursynthSupport = true;
})
{
extraMakeWrapperArgs = [ extraMakeWrapperArgs = [
# Add paths to required libraries # Add paths to required libraries
"--prefix" "--prefix"
"LD_LIBRARY_PATH" "LD_LIBRARY_PATH"
":" ":"
"/run/opengl-driver/lib:${lib.makeLibraryPath libraries}" "/run/opengl-driver/lib:${lib.makeLibraryPath [ ocl-icd ]}"
]; ];
} }