MPV: Difference between revisions
imported>Nix m add Software/Applications subcategory |
imported>ThinkChaos m Use `mpv` instead of `mpv-with-scripts` |
||
Line 2: | Line 2: | ||
* <code>mpv</code> | * <code>mpv</code> | ||
* <code>mpv- | * <code>mpv-unwrapped</code> | ||
{{ic|mpv | {{ic|mpv}} is a wrapper for the {{ic|mpv}} binary which adds {{ic|--script<nowiki>=</nowiki>}} arguments according to the scripts the wrapper was built with. | ||
If you'd like to add scripts to your {{ic|mpv}} wrapper, you'll need to create an overlay in {{ic|~/.config/nixpkgs/config.nix}} or {{ic|/etc/nixos/configuration.nix}} (if you are using NixOS): | If you'd like to add scripts to your {{ic|mpv}} wrapper, you'll need to create an overlay in {{ic|~/.config/nixpkgs/config.nix}} or {{ic|/etc/nixos/configuration.nix}} (if you are using NixOS): | ||
Line 11: | Line 11: | ||
nixpkgs.overlays = [ | nixpkgs.overlays = [ | ||
(self: super: { | (self: super: { | ||
mpv = super.mpv | mpv = super.mpv.override { | ||
scripts = [ self.mpvScripts.<your choice> ]; | scripts = [ self.mpvScripts.<your choice> ]; | ||
}; | }; | ||
Line 28: | Line 28: | ||
nixpkgs.overlays = [ | nixpkgs.overlays = [ | ||
(self: super: { | (self: super: { | ||
mpv = super.mpv | mpv = super.mpv.override { | ||
scripts = [ self.mpvScripts.mpris ]; | scripts = [ self.mpvScripts.mpris ]; | ||
}; | }; |