update Nix installation instructions (#512)

We should avoid recommending nix-env as it will often lead to undesirable behaviour (e.g. name collisions), especially on NixOS.

Read more here: https://stop-using-nix-env.privatevoid.net/
This commit is contained in:
NotAShelf 2024-02-25 05:28:14 +00:00 committed by GitHub
parent 4dca4c72d7
commit 4e02bd81bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -263,7 +263,7 @@ sudo port install hstr
To install HSTR using the [nix package manager](https://nixos.org/nix/) e.g. on [NixOS](https://nixos.org/) you can use the [nix derivation for HSTR](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/hstr/default.nix): To install HSTR using the [nix package manager](https://nixos.org/nix/) e.g. on [NixOS](https://nixos.org/) you can use the [nix derivation for HSTR](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/hstr/default.nix):
```bash ```bash
nix-env -i hstr nix profile install nixpkgs#hstr
``` ```
[Configure](CONFIGURATION.md) HSTR and check its [man page](README.md#documentation). [Configure](CONFIGURATION.md) HSTR and check its [man page](README.md#documentation).