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

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

parent 8ce06b6f
...@@ -525,16 +525,18 @@ addDefaultSetupDependencies defaultSetupDeps params = ...@@ -525,16 +525,18 @@ addDefaultSetupDependencies defaultSetupDeps params =
PD.setupBuildInfo = PD.setupBuildInfo =
case PD.setupBuildInfo pkgdesc of case PD.setupBuildInfo pkgdesc of
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
......
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