@@ -567,9 +567,11 @@ final: prev: {
567567 in let pkg-set = mkStackPkgSet
568568 { stack-pkgs = importAndFilterProject callProjectResults;
569569 pkg-def-extras = (args.pkg-def-extras or []);
570− modules = final.lib.singleton (mkCacheModule cache)
571− ++ (args.modules or [])
572− ++ final.lib.optional (args ? ghc) { ghc.package = args.ghc; };
570+ modules = final.lib.singleton (mkCacheModule cache)
571+ ++ (args.modules or [])
572+ ++ final.lib.optional (args ? ghc) { ghc.package = args.ghc; }
573+ ++ final.lib.optional (args ? compiler-nix-name)
574+ { compiler.nix-name = final.lib.mkForce args.compiler-nix-name; };
573575 };
574576
575577 project = addProjectAndPackageAttrs {