From fc94594b8988535c2a05cba03be54602adf0eb85 Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Mon, 24 Nov 2025 17:16:00 +0000 Subject: [PATCH 1/2] mpv: Add versionCheckHook --- pkgs/applications/video/mpv/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix index 8636de913fbf..7724b1254f4a 100644 --- a/pkgs/applications/video/mpv/default.nix +++ b/pkgs/applications/video/mpv/default.nix @@ -90,6 +90,7 @@ waylandSupport ? !stdenv.hostPlatform.isDarwin, x11Support ? !stdenv.hostPlatform.isDarwin, zimgSupport ? true, + versionCheckHook, }: let @@ -300,6 +301,11 @@ stdenv.mkDerivation (finalAttrs: { patchShebangs --update --host $out/bin/umpv $out/bin/mpv_identify.sh ''; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + doInstallCheck = true; + passthru = { inherit # The wrapper consults luaEnv and lua.version @@ -319,7 +325,6 @@ stdenv.mkDerivation (finalAttrs: { tests = { inherit (nixosTests) mpv; - version = testers.testVersion { package = finalAttrs.finalPackage; }; pkg-config = testers.hasPkgConfigModules { package = finalAttrs.finalPackage; moduleNames = [ "mpv" ]; From 14cb7c355682d0d44f591c56caa8ee9aafe02f68 Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Mon, 24 Nov 2025 17:22:04 +0000 Subject: [PATCH 2/2] mpv: Update license per: - https://github.com/mpv-player/mpv/blob/master/meson.build --- pkgs/applications/video/mpv/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix index 7724b1254f4a..8b95f6171a23 100644 --- a/pkgs/applications/video/mpv/default.nix +++ b/pkgs/applications/video/mpv/default.nix @@ -340,7 +340,10 @@ stdenv.mkDerivation (finalAttrs: { MPlayer and mplayer2 projects, with great improvements above both. ''; changelog = "https://github.com/mpv-player/mpv/releases/tag/v${finalAttrs.version}"; - license = lib.licenses.gpl2Plus; + license = [ + lib.licenses.gpl2Plus + lib.licenses.lgpl21Plus + ]; mainProgram = "mpv"; maintainers = with lib.maintainers; [ fpletz