mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
25 lines
344 B
Nix
25 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}"
|
||
|
];
|
||
|
}
|