From ee7b62ce5d02122e681493004e75cfb6d5cfbb5c Mon Sep 17 00:00:00 2001 From: fricklerhandwerk Date: Tue, 17 Oct 2023 13:29:16 +0200 Subject: [PATCH] README: show nix-shell example instead of nix-env nix-env is known to be a footgun especially for beginners --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c4053dc..3ecc601 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,13 @@ Painless dependencies for [Nix] projects. Read more in the [Getting started](#ge `niv` is available in [`nixpkgs`](https://github.com/NixOS/nixpkgs) as `niv`: ``` bash -$ nix-env -iA nixpkgs.niv +$ nix-shell -p niv ``` -Alternatively, run the following command to install the development version: +Alternatively, run the following command to use the development version: ``` bash -$ nix-env -iA niv -f https://github.com/nmattia/niv/tarball/master \ +$ nix-shell -A niv-devshell https://github.com/nmattia/niv/tarball/master \ --substituters https://niv.cachix.org \ --trusted-public-keys niv.cachix.org-1:X32PCg2e/zAm3/uD1ScqW2z/K0LtDyNV7RdaxIuLgQM= ```