haskell builder: add a --constraint to configureFlags for each dependency

This commit is contained in:
Erin 2022-12-28 17:27:25 -06:00
parent 40eb491b8a
commit f77b4f4622

View File

@ -126,7 +126,11 @@ in {
doBenchmark = false;
# FIXME: this skips over the default package if its name isn't set properly
configureFlags = subsystemAttrs.cabalFlags."${name}"."${version}" or [];
configureFlags =
(subsystemAttrs.cabalFlags."${name}"."${version}" or [])
++ (map
(dep: "--constraint=${dep.name}==${dep.version}")
(getDependencies name version));
libraryToolDepends = libraryHaskellDepends;
executableHaskellDepends = libraryHaskellDepends;