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 = ...@@ -527,14 +527,16 @@ addDefaultSetupDependencies defaultSetupDeps params =
Just sbi -> Just sbi Just sbi -> Just sbi
Nothing -> case defaultSetupDeps srcpkg of Nothing -> case defaultSetupDeps srcpkg of
Nothing -> Nothing Nothing -> Nothing
Just deps -> Just PD.SetupBuildInfo { Just deps | isCustom -> Just PD.SetupBuildInfo {
PD.defaultSetupDepends = True, PD.defaultSetupDepends = True,
PD.setupDepends = deps PD.setupDepends = deps
} }
| otherwise -> Nothing
} }
} }
} }
where where
isCustom = PD.buildType pkgdesc == PD.Custom
gpkgdesc = packageDescription srcpkg gpkgdesc = packageDescription srcpkg
pkgdesc = PD.packageDescription gpkgdesc pkgdesc = PD.packageDescription gpkgdesc
......
Supports Markdown
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