mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-29 01:14:09 +03:00
haskell builder: add a --constraint
to configureFlags
for each dependency
This commit is contained in:
parent
40eb491b8a
commit
f77b4f4622
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user