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

haskell: export haskellBuildInputs #21097

Closed

Conversation

Profpatsch
Copy link
Member

In certain cases one needs the buildInputs of a package to be available, e.g.
for constructing a hoogle database (of which the provided ghc.withHoogle is a
special case).

Example:

hoogleLocal { packages = haskellPackage.somePkg.haskellBuildInputs; }

In certain cases one needs the buildInputs of a package to be available, e.g.
for constructing a hoogle database (of which the provided ghc.withHoogle is a
special case).

Example:

hoogleLocal { packages = haskellPackage.somePkg.haskellBuildInputs; }
@mention-bot
Copy link

@Profpatsch, thanks for your PR! By analyzing the history of the files in this pull request, we identified @peti, @cstrahan and @Ericson2314 to be potential reviewers.

@Profpatsch
Copy link
Member Author

@peti followup. :)

@peti
Copy link
Member

peti commented Dec 12, 2016

This feels very ad-hoc'ish. Why do we expose haskellBuildInputs but not everything else? Also, all this information is readily available from the haskellPackages package set if one just passes an appropriate mkDerivation function. I don't feel like this belongs into the generic builder.

@Profpatsch
Copy link
Member Author

How would you say “give me all (haskell) dependencies of $package”? It’s something I need rather often.

@peti
Copy link
Member

peti commented Dec 12, 2016

For example:

(haskellPackages.async.override { mkDerivation = x: x; }).libraryHaskellDepends

@Profpatsch
Copy link
Member Author

Oh, nice. Didn’t think about overriding mkDerivation.

@Profpatsch Profpatsch closed this Dec 13, 2016
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