-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
doc: add example on haskellPackages overlay #44718
Comments
Your example is fine, there is a missing brace but that is inessential. You might have expected that the attribute at I would have written the example almost the same but composing with potential old overrides: self: super: {
haskellPackages = super.haskellPackages.override (oldArgs: {
overrides =
self.lib.composeExtensions (oldArgs.overrides or (_: _: {}))
(hself: hsuper: {
cabal-helper = self.haskell.lib.doJailbreak hsuper.cabal-helper;
});
});
} |
Indeed running w/o overlay doesn't give the same result thanks. I now get
but I will probably manage something. Still hoping for the manual to be updated. Might do it once I get more confident with haskell. |
Jailbreaking a package means disregarding all versions bounds on the dependencies if you know or hope it will work anyway. I assume you are trying to build |
hum I've been - unsuccessfully - trying to use the latest cabal-helper as suggested: I tried asking on irc to no avail so trying here. First I tried in shell.nix override-source and/or overrides
then I tried via the overlay
yet always "0.8.0.2" gets chosen ?
|
The commit rev you referenced is actually the parent of the release commit for 0.8.1.0, with the only missing thing being the version bump to 0.8.1.0, that could explain your observation. |
Right I updated the revision/hash. Thanks for the help. It then fails with
Where does the patch come from ? it doesn't appear in hackage-packages.nix definition of cabal-plan. |
I think from here:
|
Issue description
I would like to override some packages in haskellPackages but using overlays instead of the "old way" packageOverrides in config.nix
https://nixos.org/nixpkgs/manual/#how-to-override-package-versions-in-a-compiler-specific-package-set
I've searched the net for some time and am a bit confused at to what is best (extend/override)
#26561
Gabriella439/haskell-nix#53
what I've come up with is
but when in a nix repl, haskellPackages.cabal-helper.jailbreak won't exist. I would be very grateful to anyone sharing a working overlay.
It would be nice to have an overlay usage example in the nixpkgs manual too.
The text was updated successfully, but these errors were encountered: