From fd1fed39d26a1db7373ff452297db583273ee695 Mon Sep 17 00:00:00 2001 From: nicoo Date: Sat, 9 Dec 2023 15:23:24 +0000 Subject: [PATCH] mpvScripts.{acompressor, auto{crop,deint,load}}: dontUnpack --- pkgs/applications/video/mpv/scripts/mpv.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/video/mpv/scripts/mpv.nix b/pkgs/applications/video/mpv/scripts/mpv.nix index e8bf87b96564..06e9ccb4d74a 100644 --- a/pkgs/applications/video/mpv/scripts/mpv.nix +++ b/pkgs/applications/video/mpv/scripts/mpv.nix @@ -4,14 +4,17 @@ }: let mkBuiltin = name: args: - buildLua (lib.attrsets.recursiveUpdate rec { + let srcPath = "TOOLS/lua/${name}.lua"; + in buildLua (lib.attrsets.recursiveUpdate rec { inherit (mpv-unwrapped) src version; pname = "mpv-${name}"; - scriptPath = "TOOLS/lua/${name}.lua"; + + dontUnpack = true; + scriptPath = "${src}/${srcPath}"; meta = with lib; { inherit (mpv-unwrapped.meta) license; - homepage = "https://github.com/mpv-player/mpv/blob/v${version}/${scriptPath}"; + homepage = "https://github.com/mpv-player/mpv/blob/v${version}/${srcPath}"; }; } args);