@@ -118,22 +118,22 @@ let
118118 qtwayland = [ ./qtwayland-libdrm-build.patch ];
119119 };
120120
121− qtModule =
122− import ../qtModule.nix
123− {
124− inherit perl;
125− inherit lib;
126− # Use a variant of mkDerivation that does not include wrapQtApplications
127− # to avoid cyclic dependencies between Qt modules.
128− mkDerivation =
129− import ../mkDerivation.nix
130− { inherit lib; inherit debug; wrapQtAppsHook = null; }
131− stdenv.mkDerivation;
132− }
133− { inherit self srcs patches; };
134−
135121 addPackages = self: with self;
136122 let
123+ qtModule =
124+ import ../qtModule.nix
125+ {
126+ inherit perl;
127+ inherit lib;
128+ # Use a variant of mkDerivation that does not include wrapQtApplications
129+ # to avoid cyclic dependencies between Qt modules.
130+ mkDerivation =
131+ import ../mkDerivation.nix
132+ { inherit lib; inherit debug; wrapQtAppsHook = null; }
133+ stdenv.mkDerivation;
134+ }
135+ { inherit self srcs patches; };
136+
137137 callPackage = self.newScope { inherit qtCompatVersion qtModule srcs; };
138138 in {
139139
@@ -228,6 +228,4 @@ let
228228 } ../hooks/wrap-qt-apps-hook.sh;
229229 };
230230
231− self = lib.makeScope newScope addPackages;
232−
233−in self
231+in lib.makeScope newScope addPackages