Hi,
trying to build Qt-based Nix-packages unfortunately isn’t really easy, due to the necessary wrappers. The current way seems to be “use wrapQtAppsHook”.
But how can this be done in a standalone package? There, wrapQtAppsHook, qtbase etc. are not found.
hmm, that’s one way to do it so the package scope aligns. But you’re correct, my original proposal doesn’t work. I’m not super sure how the Qt injection does everything. cc @worldofpeace@jtojnar
I think there would have been a lot less pain if the build helper was named buildQt5Application instead of shadowing the mkDerviation function. This would also make the libsForQt5.callPackage less conflicting with what’s in scope.
Maybe it will in the future; but at the moment, wrapQtAppsHook cannot be found in stdenv.mkDerivation.
(error: undefined variable 'wrapQtAppsHook' at /path/to/default.nix)
Also note that function calls like stdenv.mkDerivation have no effect on scope – only function declaration, let binding, recursive set, and with statement can affect scope.