Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghc: Allow the use to pass extraBuildMk to append to mk/build.mk #51927

Closed

Conversation

Fuuzetsu
Copy link
Member

There appears to be no sane way currently to add custom stuff to
mk/build.mk short of copying out the GHC expression and changing it
through there.

Things done

Does not cause rebuild.

There appears to be no sane way currently to add custom stuff to
mk/build.mk short of copying out the GHC expression and changing it
through there.
@peti
Copy link
Member

peti commented Dec 13, 2018

There appears to be no sane way currently to add custom stuff to mk/build.mk.

You can append code to preConfigure that modifies that file, i.e. by means of overrideDerivation. There might be other ways, too, I haven't thought about this much.

@Fuuzetsu
Copy link
Member Author

The file gets overwritten in configurePhase and it's too late by postConfigure, no?

@peti
Copy link
Member

peti commented Dec 15, 2018

The file gets overwritten in configurePhase ...

No, I don't think so. What I saw is that It get's written to in preConfigure.

@Fuuzetsu
Copy link
Member Author

I re-read the expression and it seems like appending to preConfigure should work after all, my apologies. Closing.

@Fuuzetsu Fuuzetsu closed this Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants