Nixpkgs/Patching Nixpkgs: Difference between revisions

Toastal (talk | contribs)
m typos
Perchun (talk | contribs)
m Link IFD column name to the Nix manual page
 
Line 5: Line 5:
{| class="wikitable" style="text-align: center; width: 500px;"
{| class="wikitable" style="text-align: center; width: 500px;"
|-
|-
! Name            !! Method          !! IFD !! Requires Flakes
! Name            !! Method          !! [https://nixos.org/manual/nix/unstable/language/import-from-derivation IFD]!! Requires Flakes
|-
|-
| applyPatch      || .patch files    ||  X  ||
| applyPatch      || .patch files    ||  X  ||
Line 18: Line 18:
|}
|}


Most of the solutions work on the <code>.patch</code> files, but those have a huge disadvantage - they quickly go out of date and have to be constantly rebased. This is especially true for solutions that use Git to apply patches. Another disadvantage may be [https://nixos.org/manual/nix/unstable/language/import-from-derivation IFD], which may result in [https://nixcademy.com/posts/what-is-ifd-ups-and-downs/ performance and runtime issues].
Most of the solutions work on the <code>.patch</code> files, but those have a huge disadvantage - they quickly go out of date and have to be constantly rebased. This is especially true for solutions that use Git to apply patches. Another disadvantage may be [https://nixos.org/manual/nix/stable/language/import-from-derivation IFD], which may result in [https://nixcademy.com/posts/what-is-ifd-ups-and-downs/ performance and runtime issues].


== Usage ==
== Usage ==