Originally published at drakerossman.com - How to Patch a Package Source on NixOS.
This is the supplementary code for the article describing how to patch the sources of alejandra
nix code formatter, so it uses 4-space indent instead of 2-space. The resulting application is named alejandra4
.
alejandra
is a nix code formatter written in Rust by Kevin Amado (kamadorueda). The source code is available at https://github.com/kamadorueda/alejandra.