Use configureCabalFlags from cabal2nix #69
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The function
configureCabalFlags
uses a list of packages that should be called with certain flags when passing them tocabal2nix
.For example, for
hslua
, it specifies that it is to used the "system" version of lua (the one provided by nix) and not the version of lua that comes embedded in the package. Notice that cabal2nix assumes assumes this flag in newer versions of itspostProcess
method, and if the flag is not given, it will fail attempting to replace package "lua" by "lua_5_3". In any case, a derivation forhslua
that doesn't includelua_5_3
as a dependency would be incomplete.This PR also contains two minor changes (they could be moved to a different PR if needed):
stackage2nix
work with more recent versions ofcabal2nix
, which introduced a couple of api-breaking changes.stack --nix
.