@@ -327,14 +327,11 @@ in {
327327
328328 ghc-patches = ghc-patches "8.8.4";
329329 };
330− ghc8101 =
331− let
332− buildPkgs = import final.path ((import ../. {}).nixpkgsArgs // { system = final.stdenv.system; });
333− in final.callPackage ../compiler/ghc {
330+ ghc8101 = final.callPackage ../compiler/ghc {
334331 extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc8101; };
335332
336333 bootPkgs = bootPkgs // {
337− ghc = buildPkgs.haskell-nix.compiler.ghc884;
334+ ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc884;
338335 };
339336 inherit sphinx installDeps;
340337
@@ -349,14 +346,11 @@ in {
349346
350347 ghc-patches = ghc-patches "8.10.1";
351348 };
352− ghc8102 =
353− let
354− buildPkgs = import final.path ((import ../. {}).nixpkgsArgs // { system = final.stdenv.system; });
355− in final.callPackage ../compiler/ghc {
349+ ghc8102 = final.callPackage ../compiler/ghc {
356350 extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc8102; };
357351
358352 bootPkgs = bootPkgs // {
359− ghc = buildPkgs.haskell-nix.compiler.ghc884;
353+ ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc884;
360354 };
361355 inherit sphinx installDeps;
362356