Add Guix install and usage instructions

This commit is contained in:
jgart 2022-12-15 07:55:32 -06:00 committed by GitHub
parent a526ee0829
commit f1c54a322d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -221,6 +221,16 @@ Using the [nix package manager](https://nixos.org/nix):
nix-env -iA nixpkgs.shellcheck
```
Using [Guix](https://guix.gnu.org/) to install shellcheck to you default profile:
```sh
guix install shellcheck
```
Alternatively using [guix shell](https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-shell.html) to create a temporary environment, you can check a file with the following command, for example:
```sh
guix shell shellcheck -- shellcheck foo.sh
```
Alternatively, you can download pre-compiled binaries for the latest release here:
* [Linux, x86_64](https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz) (statically linked)