-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
haskellPackages: fix build of miso/reflex deps #373056
haskellPackages: fix build of miso/reflex deps #373056
Conversation
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.
Thanks! I've cherry-picked everything except the reflex thing which I've commented on.
doJailbreak | ||
# Until hackage release has https://github.com/reflex-frp/reflex/pull/517 | ||
(overrideCabal (drv: { | ||
postPatch = "sed -i 's/Data.Witherable/Witherable/' src/Data/*.hs src/Reflex/*.hs src/Reflex/Spider/*.hs test/*.hs"; |
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.
- Make sure not discard any other
postPatch
changes elsewhere (hypothetic ones in this case). - Using
--replace-fail
is better here since it won't fail silently when the problem is fixed upstream.
This could be achieved like this (untested):
postPatch = "sed -i 's/Data.Witherable/Witherable/' src/Data/*.hs src/Reflex/*.hs src/Reflex/Spider/*.hs test/*.hs"; | |
postPatch = drv.postPatch or "" + '' | |
substituteInPace src/Data/*.hs src/Reflex/*.hs src/Reflex/Spider/*.hs test/*.hs --replace-fail Data.Witherable Witherable | |
'' |
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.
Could not use *
with --replace-fail
, so I listed individual files.
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.
Aha! That's why my own code always uses for
loops with it.
8b6fc1b
to
aa12f81
Compare
Fixes
miso
&reflex
builds. Tested withhaskell.packages.ghc98
&pkgsCross.ghcjs.haskell.packages.ghc910
.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.