nixpkgs/pkgs/by-name/sv/svp/mpv.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
344 B
Nix
Raw Normal View History

2024-01-27 21:52:25 +00:00
{ 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}"
];
}