mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 10:49:44 +01:00
2c0e3f61da
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
60 lines
1.4 KiB
Text
60 lines
1.4 KiB
Text
[[sec-release-21.03]]
|
|
== Release 21.03
|
|
|
|
This is the current unstable branch and the information in this
|
|
section is therefore not final.
|
|
|
|
[[sec-release-21.03-highlights]]
|
|
=== Highlights
|
|
|
|
This release has the following notable changes:
|
|
|
|
* The <<opt-programs.broot.verbs>> option is now a list rather than an
|
|
attribute set. To migrate, move the keys of the attrset into the list
|
|
items' `invocation` keys. For example,
|
|
+
|
|
[source,nix]
|
|
----
|
|
programs.broot.verbs = {
|
|
"p" = { execution = ":parent"; };
|
|
};
|
|
----
|
|
+
|
|
becomes
|
|
+
|
|
[source,nix]
|
|
----
|
|
programs.broot.verbs = [
|
|
{
|
|
invocation = "p";
|
|
execution = ":parent";
|
|
}
|
|
];
|
|
----
|
|
|
|
* The <<opt-programs.mpv.package>> option has been changed to allow custom
|
|
derivations. The following configuration is now possible:
|
|
+
|
|
[source,nix]
|
|
----
|
|
programs.mpv.package = (pkgs.wrapMpv (pkgs.mpv-unwrapped.override {
|
|
vapoursynthSupport = true;
|
|
}) {
|
|
extraMakeWrapperArgs = [
|
|
"--prefix" "LD_LIBRARY_PATH" ":" "${pkgs.vapoursynth-mvtools}/lib/vapoursynth"
|
|
];
|
|
});
|
|
----
|
|
+
|
|
As a result of this change, <<opt-programs.mpv.package>> is no longer the
|
|
resulting derivation. Use the newly introduced `programs.mpv.finalPackage`
|
|
instead.
|
|
|
|
[[sec-release-21.03-state-version-changes]]
|
|
=== State Version Changes
|
|
|
|
The state version in this release includes the changes below. These
|
|
changes are only active if the `home.stateVersion` option is set to
|
|
"21.03" or later.
|
|
|
|
* Nothing has happened.
|