1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-15 23:59:45 +01:00
home-manager/modules/lib
Thiago Kenji Okada 2c0e3f61da
mpv: fix issue #1725 and add tests (#1726)
Closes issue #1725.

This allows mpv module to be customized with support for more advanced
features than the `programs.mpv.scripts` current support. For example,
with this change now this is possible:

```nix
{
  programs.mpv.package = (pkgs.wrapMpv (pkgs.mpv-unwrapped.override {
    vapoursynthSupport = true;
  }) {
    extraMakeWrapperArgs = [
      "--prefix" "LD_LIBRARY_PATH" ":" "${pkgs.vapoursynth-mvtools}/lib/vapoursynth"
    ];
  });
}

```

Since `programs.mpv.package` doesn't necessary reflect the final
derivation anymore (see #1524), we introduce `programs.mpv.finalPackage`
that has the resulting derivation.

This includes 2 tests:
- One to check if everything is alright with mpv
- Other to validate our assertion that package and scripts can't be
  passed both at the same time

* docs: document recent mpv module changes

* mpv: add thiagokokada as maintainer
2021-01-21 18:10:12 -05:00
..
dag.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
default.nix lib: add maintainers attribute set 2020-05-02 16:30:55 +02:00
file-type.nix lib/file-type: remove types.loaOf 2020-09-02 11:13:36 -07:00
gvariant.nix lib.gvariant: escape backslashes in strings 2020-08-12 22:53:28 +02:00
maintainers.nix mpv: fix issue #1725 and add tests (#1726) 2021-01-21 18:10:12 -05:00
shell.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
stdlib-extended.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
strings.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
types-dag.nix ssh: deprecate the list form of match block 2020-04-16 23:27:40 +02:00
types.nix lib: support gvariant maybe type 2020-07-24 16:45:13 +02:00
zsh.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00