MPV: Difference between revisions
Wanted to show how you'd use mpvScripts without using Home Manager. |
m Updated Troubleshooting section to work with the changes to the mpv-package as in https://github.com/NixOS/nixpkgs/pull/474601 |
||
| Line 125: | Line 125: | ||
To address this problem, you can use the following package configuration for ffmpeg. | To address this problem, you can use the following package configuration for ffmpeg. | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix">programs.mpv = { | ||
programs.mpv = { | |||
enable = true; | enable = true; | ||
| Line 132: | Line 131: | ||
pkgs.mpv-unwrapped.wrapper { | pkgs.mpv-unwrapped.wrapper { | ||
mpv = pkgs.mpv-unwrapped.override { | mpv = pkgs.mpv-unwrapped.override { | ||
ffmpeg = pkgs.ffmpeg-full; | |||
}; | |||
} | |||
); | |||
};</syntaxhighlight>On <code>nixos-unstable</code>, the <code>wrapper</code> attribute has been removed and instead a regular <code>override</code> can be used to adjust <code>mpv-unwrapped</code>:<syntaxhighlight lang="nix"> | |||
programs.mpv = { | |||
enable = true; | |||
package = ( | |||
pkgs.mpv.override { | |||
mpv-unwrapped = pkgs.mpv-unwrapped.override { | |||
ffmpeg = pkgs.ffmpeg-full; | ffmpeg = pkgs.ffmpeg-full; | ||
}; | }; | ||
| Line 137: | Line 147: | ||
); | ); | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||