60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
24 lines
344 B
Nix
24 lines
344 B
Nix
{ lib
|
|
, mpv-unwrapped
|
|
, wrapMpv
|
|
, ocl-icd
|
|
, ...
|
|
}:
|
|
let
|
|
libraries = [
|
|
ocl-icd
|
|
];
|
|
in
|
|
wrapMpv
|
|
(mpv-unwrapped.override {
|
|
vapoursynthSupport = true;
|
|
})
|
|
{
|
|
extraMakeWrapperArgs = [
|
|
# Add paths to required libraries
|
|
"--prefix"
|
|
"LD_LIBRARY_PATH"
|
|
":"
|
|
"/run/opengl-driver/lib:${lib.makeLibraryPath libraries}"
|
|
];
|
|
}
|