-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
miso: init at 0.2.0.0 #27322
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
miso: init at 0.2.0.0 #27322
Conversation
@dmjio, thanks for your PR! By analyzing the history of the files in this pull request, we identified @cstrahan, @Profpatsch and @k0001 to be potential reviewers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment to explain why that override is necessary and what problem it fixes.
a7c5458
to
1b3b01a
Compare
@peti thanks for review, I forgot to include the entire derivation with correct dependencies. I then also forgot to include the final |
It seems to be working on nixos (w/
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, it would be much better to augment the existing expression of miso
with the missing settings, i.e. via overrideCabal
. Replacing the whole expression feels like overkill, particularly the override of the src
field, which means that this override effectively prevents any version updates on Hackage from making it into the package set.
Also, please add a comment to the code that explains why this override is necessary in the first place.
Ah, that is a much better idea. Yes overriding source is overkill. Will fix soon. Overriding is necessary because the derivation on hackage-packages.nix was not created with '--compiler ghcjs'.
…Sent from my iPhone
On Jul 12, 2017, at 8:23 AM, Peter Simons ***@***.***> wrote:
@peti requested changes on this pull request.
IMHO, it would be much better to augment the existing expression of miso with the missing settings, i.e. via overrideCabal. Replace the whole expression feels like overkill, particularly the override of the src field, which means that this expression effectively prevents any version updates on Hackage from making it into the package set.
Also, please add a comment to the code that explains why this override is necessary in the first place.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
4fb40c3
to
7288801
Compare
@peti, have made more changes in response to the review, please advise. |
Yes, I understand that. But other people might not, and it would be great if you could document the purpose of the override in the source code so could that casual readers who look at that file can see what is going on without having to resort to |
cc @peti, documentation added |
@peti 🍻 |
Thank you, @dmjio, for submitting that fix! |
Adds
miso-0.2.0.0
toghcjs
overridescc @peti
Motivation for this change
To add the correct dependencies to the ghcjs version of miso.
Currently, the version of
miso
inhackage-packages.nix
is forghc
only (i.e. doesn't have correctghcjs
depedencies -- since it wasn't generated withcabal2nix
appropriately. It needs to specify the correct compiler flag,cabal2nix --compiler ghcjs
, otherwise it will not build). This override specifies a new derivation with the correct client dependencies when usinghaskell.packages.ghcjs.miso
(basically same as callingcabal2nix --compiler ghcjs
)Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)