Commit 895f863b authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺
Browse files

Don't inject `setupBuildInfo` for non-Custom packages

parent 8ce06b6f
......@@ -527,14 +527,16 @@ addDefaultSetupDependencies defaultSetupDeps params =
Just sbi -> Just sbi
Nothing -> case defaultSetupDeps srcpkg of
Nothing -> Nothing
Just deps -> Just PD.SetupBuildInfo {
Just deps | isCustom -> Just PD.SetupBuildInfo {
PD.defaultSetupDepends = True,
PD.setupDepends = deps
}
| otherwise -> Nothing
}
}
}
where
isCustom = PD.buildType pkgdesc == PD.Custom
gpkgdesc = packageDescription srcpkg
pkgdesc = PD.packageDescription gpkgdesc
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment