We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bdfe10 commit e340658Copy full SHA for e340658
builder/comp-builder.nix
@@ -174,9 +174,12 @@ let
174
175
prePatch = if (cabalFile != null)
176
then ''cat ${cabalFile} > ${package.identifier.name}.cabal''
177
- else lib.optionalString (cabal-generator == "hpack") ''
178
- ${buildPackages.haskell-nix.nix-tools.${compiler.nix-name}}/bin/hpack
179
- '';
+ else
+ # When building hpack package we use the internal nix-tools
+ # (compiled with a fixed GHC version)
180
+ lib.optionalString (cabal-generator == "hpack") ''
181
+ ${buildPackages.haskell-nix.internal-nix-tools}/bin/hpack
182
+ '';
183
}
184
# patches can (if they like) depend on the version and revision of the package.
185
// lib.optionalAttrs (patches != []) {
0 commit comments