From 47657466529d30760aa4fd1f17274f349f3394b3 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sat, 10 Aug 2024 17:15:34 +0200 Subject: [PATCH] docs: add Nix instructions to README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 82cbb25..9a900ec 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,25 @@ cargo install forgejo-cli cargo install --git https://codeberg.org/Cyborus/forgejo-cli.git --branch main ``` +### Nix + +A Nix flake is included in this repository that you may use. You could install it into your Nix +profile, for example: +``` +nix profile install git+https://codeberg.org/Cyborus/forgejo-cli +``` +...or include it in the flake inputs of your NixOS system: +```nix +{ + inputs = { + # ... + forgejo-cli.url = "git+https://codeberg.org/Cyborus/forgejo-cli"; + }; + # ... +} +``` + + ### OCI Container `forgejo-cli` is available as an OCI container for use in CI, at