summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Gerace <nickagerace@gmail.com>2023-02-05 20:57:16 -0500
committerNick Gerace <nickagerace@gmail.com>2023-02-05 22:57:40 -0500
commit5b8ddcb86fead6f0304b94610c1d7dae2c2120a7 (patch)
treecf867a89a09e9f301ed8739f2dc52ae8b7604f69
parentad9c3b3841a0da9d142f979b1d91591fd66e180d (diff)
downloadgfold-5b8ddcb86fead6f0304b94610c1d7dae2c2120a7.zip
Fix nixpkgs link and add flake-based command
Signed-off-by: Nick Gerace <nickagerace@gmail.com>
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index ffafb74..c6d06e5 100644
--- a/README.md
+++ b/README.md
@@ -122,12 +122,18 @@ pacman -S gfold
### Nix and NixOS
-You can install `gfold` from [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/version-management/git-and-tools/gfold/default.nix):
+You can install `gfold` from [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/version-management/gfold/default.nix):
```shell
nix-env --install gfold
```
+If you are using [flakes](https://nixos.wiki/wiki/Flakes), you can install using the `nix` command directly.
+
+```shell
+nix profile install "nixpkgs#gfold"
+```
+
### Cargo Install
You can use [cargo](https://crates.io) to install the [crate](https://crates.io/crates/gfold) on almost any platform.