MPV
From NixOS Wiki
Revision as of 17:37, 28 November 2022 by ThinkChaos (talk | contribs) (Use `mpv` instead of `mpv-with-scripts`)
There are 2 packages that provide an mpv
executable:
mpv
mpv-unwrapped
mpv
is a wrapper for the mpv
binary which adds --script=
arguments according to the scripts the wrapper was built with.
If you'd like to add scripts to your mpv
wrapper, you'll need to create an overlay in ~/.config/nixpkgs/config.nix
or /etc/nixos/configuration.nix
(if you are using NixOS):
nixpkgs.overlays = [
(self: super: {
mpv = super.mpv.override {
scripts = [ self.mpvScripts.<your choice> ];
};
})
];
All of the scripts for MPV can be found under the mpvScripts
attribute. You can search for them by running nix search mpvScripts
. The scripts are defined in the following Nixpkgs directory:
pkgs/applications/video/mpv/scripts
So for example, for adding the MPRIS MPV script, use the following in your ~/.config/nixpkgs/config.nix
:
{
nixpkgs.overlays = [
(self: super: {
mpv = super.mpv.override {
scripts = [ self.mpvScripts.mpris ];
};
})
];
}