Nixpkgs/Patching Nixpkgs: Difference between revisions

Toastal (talk | contribs)
Nixtamal partially addresses one of the disadvantages using a patches in the case of a dynamic URL
Toastal (talk | contribs)
Cleanup footnote
 
Line 18: Line 18:
|}
|}


Most of the solutions work using the reliable <code>.diff</code> / <code>.patch</code> file. [https://en.wikipedia.org/wiki/Patch_(Unix) Patch files] have some disadvantages, namely they can go out of date, needing rebasing if the patch no longer applies<ref group="footnotes">[[Nixtamal]] will automatically refetch any updates/rebases to patches referencing to a dynamic URL, such as those referencing a in-review pull request on a code forge, on running <code>nixtamal refresh</code> </ref>. [https://nixos.org/manual/nix/stable/language/import-from-derivation IFD] usage may result in [https://nixcademy.com/posts/what-is-ifd-ups-and-downs/ performance and runtime issues].
Most of the solutions work using the reliable <code>.diff</code> / <code>.patch</code> files. [https://en.wikipedia.org/wiki/Patch_(Unix) Patch files] have some disadvantages, namely they can go out of date, needing rebasing if the patch no longer applies<ref group="footnotes">[[Nixtamal]] will automatically refetch any updates/rebases to patches referencing a dynamic URL, such as an in-review pull request on a code forge, on running <code>nixtamal refresh</code> </ref>. [https://nixos.org/manual/nix/stable/language/import-from-derivation IFD] usage may result in [https://nixcademy.com/posts/what-is-ifd-ups-and-downs/ performance and runtime issues].


== Usage ==
== Usage ==