1−{ stdenv, buildPackages, ghc, lib, gobject-introspection ? null, haskellLib, makeConfigFiles, haddockBuilder, ghcForComponent, hsPkgs, runCommand, libffi, gmp, zlib, ncurses, numactl, nodejs }:
1+{ stdenv, buildPackages, ghc, lib, gobject-introspection ? null, haskellLib, makeConfigFiles, haddockBuilder, ghcForComponent, hsPkgs, compiler, runCommand, libffi, gmp, zlib, ncurses, numactl, nodejs }:
176 then ''cat ${cabalFile} > ${package.identifier.name}.cabal''
176 then ''cat ${cabalFile} > ${package.identifier.name}.cabal''
177 else lib.optionalString (cabal-generator == "hpack") ''
177 else lib.optionalString (cabal-generator == "hpack") ''
178− ${buildPackages.haskell-nix.haskellPackages.hpack.components.exes.hpack}/bin/hpack
178+ ${buildPackages.haskell-nix.nix-tools.${compiler.nix-name}}/bin/hpack
181 # patches can (if they like) depend on the version and revision of the package.
181 # patches can (if they like) depend on the version and revision of the package.