From f5bc8a5433c49c8e95e6c09d6a7fd5fa20a033b9 Mon Sep 17 00:00:00 2001 From: Jesse Hallett Date: Sun, 25 Feb 2024 15:28:28 -0800 Subject: [PATCH] docs: add instructions for installing with nix --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f1a4fc..ccaf8fd 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,16 @@ patch step can be disabled with the `--no-update-working-tree` option. ## How to install +### Install with Nix + +Install via the CLI: + + $ nix profile add github:hallettj/git-format-staged + +Or add to your flake imports, and use the `default` package output. + +### Install with NPM + Requires Python version 3 or 2.7. Install as a development dependency in a project that uses npm packages: @@ -45,7 +55,11 @@ Or install globally: $ npm install --global git-format-staged -If you do not use npm you can copy the +### Or just copy the script + +Requires Python version 3 or 2.7. + +If you do not use the above methods you can copy the [`git-format-staged`](./git-format-staged) script from this repository and place it in your executable path. The script is MIT-licensed - so you can check the script into version control in your own open source project if you wish.