-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Patching package.yaml
does not update dependencies
#548
Comments
My guess is that you are calling For instance, calling
This I think your two choices here are either to patch |
Thanks for the help! How would I patch the sources before calling Regardless, This is what I ended up with:
|
Without a fully reproducible example, it is hard to help you, but I thought that all you'd need would be something like this: addBuildDepend singletons-th (hfinal.callCabal2nix "xxx-gogol" sources.xxx-gogol { }) Although I'm not sure if you have some specific |
Totally get it, and I appreciate your help. This is unfortunately in the middle of a large commercial project and I don't have the time/energy to cut that down to a manageable chunk. For posterity, note that I essentially can't modify the source repository here ( I was able to implement a solution that patches the sources first, then uses those patched sources as input to
|
nixpkgs has a simpler function for this, called I don't see how this is a cabal2nix issue really, it behaves correctly in this example in my opinion. Can you state what you would like to change? |
Accidently re-opened - nothing needs to change. Thanks for the tip about |
I have a package that, in order to support GHC 9, needs a dependency on
singletons-th
. When I useappendPatch
to patchpackage.yml
, the resulting build fails because the dependency onsingletons-th
isn't seen.This the patch file:
And I've added it to the list of patches using
appendPatch
(wherexxx-gogol
is sources for the package managed byniv
):Here's the output I get. Notice that
generated xxx-gogol.cabal
appears before patching:When I
cat
package.yaml (usingoverrideCabal
to add commands to various phases), I see the dependency as expected. However, thexxx-gogol.cabal
file does not contain thesingletons-th
dependency.Am I just on an old version of cabal2nix with a bug, or is this new?
Thanks for any help!
The text was updated successfully, but these errors were encountered: