|
1 | | -{ lib, stdenv, mkShell, glibcLocales, pkgconfig, ghcForComponent, makeConfigFiles, hsPkgs, hoogleLocal, haskellLib, buildPackages, evalPackages, compiler }: |
| 1 | +{ lib, stdenv, mkShell, glibcLocales, pkgconfig, ghcForComponent, makeConfigFiles, hsPkgs, hoogleLocal, haskellLib, pkgsBuildBuild, evalPackages, compiler }: |
2 | 2 |
|
3 | 3 | { # `packages` function selects packages that will be worked on in the shell itself. |
4 | 4 | # These packages will not be built by `shellFor`, but their |
|
149 | 149 | # inherit (hsPkgs) hoogle; |
150 | 150 | } // ( |
151 | 151 | lib.optionalAttrs (args ? tools && args.tools ? hoogle) { |
152 | | - hoogle = buildPackages.haskell-nix.hackage-tool ( |
| 152 | + hoogle = pkgsBuildBuild.haskell-nix.hackage-tool ( |
153 | 153 | haskellLib.versionOrModToMods args.tools.hoogle ++ [{ |
154 | 154 | name = "hoogle"; |
155 | 155 | compiler-nix-name = compiler.nix-name; |
|
168 | 168 | nativeBuildInputs = [ ghcEnv.drv ] |
169 | 169 | ++ nativeBuildInputs |
170 | 170 | ++ mkDrvArgs.nativeBuildInputs or [] |
171 | | - ++ lib.attrValues (buildPackages.haskell-nix.tools' evalPackages compiler.nix-name tools) |
| 171 | + ++ lib.attrValues (pkgsBuildBuild.haskell-nix.tools' evalPackages compiler.nix-name tools) |
172 | 172 | # If this shell is a cross compilation shell include |
173 | 173 | # wrapper script for running cabal build with appropriate args. |
174 | 174 | # Includes `--with-compiler` in case the `cabal.project` file has `with-compiler:` in it. |
175 | 175 | ++ lib.optional (ghcEnv.targetPrefix != "") ( |
176 | | - buildPackages.writeShellScriptBin "${ghcEnv.targetPrefix}cabal" '' |
| 176 | + pkgsBuildBuild.writeShellScriptBin "${ghcEnv.targetPrefix}cabal" '' |
177 | 177 | exec cabal \ |
178 | 178 | --with-ghc=${ghcEnv.targetPrefix}ghc \ |
179 | 179 | --with-compiler=${ghcEnv.targetPrefix}ghc \ |
|
0 commit comments