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

Use Haskell overlays, temporarily expose __useLegacyCompilers #253

Merged
merged 5 commits into from Oct 19, 2018

Conversation

Ericson2314
Copy link
Member

No description provided.

in if pkgs.stdenv.isDarwin
then removeConfigureFlag drv' "--ghc-option=-optl=-dead_strip"
else drv';
cleanSource = builtins.filterSource (name: _: let baseName = builtins.baseNameOf name; in !(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, it's better to use lib.cleanSourceWith than builtins.filterSource. Does the same thing, but it composes with itself, whereas builtins.filterSource cannot.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can actually be important if you want to filter a source provided by a user, because the user may want to pass you a source they've already filtered.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I think I'll do that in a follow-up PR if you don't mind? (this is just moving it around.)

For one, I need a better store for the inner overlay (haskell) accessing the outer self (pkgs) than this nasty callPackage hack!

But make sure the `ob` command itself uses the new ones always.
@luigy luigy merged commit fa3e8bb into master Oct 19, 2018
@Ericson2314 Ericson2314 deleted the config-default-compilers branch October 19, 2018 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants