Revert #303176: "buildLuarocksPackage: rework fixup phase"

This reverts commit ddefcf284ce57b2ebe042eba75feec70cfb19268.
Breakages need figuring out, reverting for now:
https://github.com/NixOS/nixpkgs/pull/303176#issuecomment-2053910614

+3 -7
+3 -7
pkgs/development/interpreters/lua-5/build-luarocks-package.nix
··· 94 ]; 95 96 inherit doCheck extraConfig rockspecFilename knownRockspec externalDeps nativeCheckInputs; 97 - inherit dontWrapLuaPrograms; 98 99 buildInputs = let 100 # example externalDeps': [ { name = "CRYPTO"; dep = pkgs.openssl; } ] ··· 178 runHook postBuild 179 ''; 180 181 - fixupPhase = '' 182 - runHook preFixup 183 - ${lib.optionalString (!self.dontWrapLuaPrograms) "wrapLuaPrograms"} 184 - runHook postFixup 185 - ''; 186 187 installPhase = '' 188 runHook preInstall ··· 199 # maybe we could reestablish dependency checking via passing --rock-trees 200 201 nix_debug "ROCKSPEC $rockspecFilename" 202 - # deps-mode=all tells luarocks to use every configured rocks_trees 203 luarocks $LUAROCKS_EXTRA_ARGS make --deps-mode=all --tree=$out ''${rockspecFilename} 204 205 runHook postInstall
··· 94 ]; 95 96 inherit doCheck extraConfig rockspecFilename knownRockspec externalDeps nativeCheckInputs; 97 98 buildInputs = let 99 # example externalDeps': [ { name = "CRYPTO"; dep = pkgs.openssl; } ] ··· 177 runHook postBuild 178 ''; 179 180 + postFixup = lib.optionalString (!dontWrapLuaPrograms) '' 181 + wrapLuaPrograms 182 + '' + attrs.postFixup or ""; 183 184 installPhase = '' 185 runHook preInstall ··· 196 # maybe we could reestablish dependency checking via passing --rock-trees 197 198 nix_debug "ROCKSPEC $rockspecFilename" 199 luarocks $LUAROCKS_EXTRA_ARGS make --deps-mode=all --tree=$out ''${rockspecFilename} 200 201 runHook postInstall