reflex-stone icon indicating copy to clipboard operation
reflex-stone copied to clipboard

Document how to override packages in nix

Open srid opened this issue 5 years ago • 2 comments

@asheshambasta asked:

with reflex platform, how does one add an overlay to pkgs being used by rp.project? I've so far found no documentation on this. Say a package is marked as broken and I'd want to add an overlay that fixes the breakage, how does one achieve that?

srid avatar Oct 20 '20 15:10 srid

Short answer: https://github.com/obsidiansystems/obelisk/blob/master/FAQ.md#how-do-i-add-or-override-haskell-dependencies-in-the-package-set

We can perhaps link to this from the README.

srid avatar Oct 20 '20 15:10 srid

@srid Another good resource is the nix expression itself: https://github.com/reflex-frp/reflex-platform/blob/develop/project/default.nix. Maybe adding this to the readme for people who'd like to know about all knobs they can tune (at least that's how I got to using overrides.)

And since we're dealing with overrides, the usual caveats with composing overrides apply.

asheshambasta avatar Oct 20 '20 16:10 asheshambasta