mpvScripts.buildLua: Run {pre, post}install hooks

This is necessary, as users of buildLua may expect the phase hooks to work,
including indirect uses such as adding a hook through `mpvScripts.foo.override`.

nicoo 7b792b0b 54d25073

+6 -2
+6 -2
pkgs/applications/video/mpv/scripts/buildLua.nix
··· 10 10 preferLocalBuild = true; 11 11 12 12 outputHashMode = "recursive"; 13 - installPhase = "install -m644 -Dt $out/share/mpv/scripts ${scriptPath}"; 14 - passthru.scriptName = fileName scriptPath; 13 + installPhase = '' 14 + runHook preInstall 15 + install -m644 -Dt $out/share/mpv/scripts ${scriptPath} 16 + runHook postInstall 17 + ''; 15 18 19 + passthru.scriptName = fileName scriptPath; 16 20 meta.platforms = lib.platforms.all; 17 21 } args) 18 22 )