nixpkgs/pkgs/by-name/sv/svp/mpv.nix
2024-06-08 01:24:01 -03:00

17 lines
310 B
Nix

{ lib
, mpv-unwrapped
, ocl-icd
, ...
}:
mpv-unwrapped.wrapper {
mpv = mpv-unwrapped.override { vapoursynthSupport = true; };
extraMakeWrapperArgs = [
# Add paths to required libraries
"--prefix"
"LD_LIBRARY_PATH"
":"
"/run/opengl-driver/lib:${lib.makeLibraryPath [ ocl-icd ]}"
];
}