File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,20 @@ docker run --rm -it -v "$(pwd)":/project -w /project alpine:latest \
9494 sh -c " apk add bash make shellcheck git && make test"
9595```
9696
97+ ##### NixOS
98+
99+ If you are using NixOS, you can enter a shell with all the required tools using the provided ` shell.nix ` :
100+
101+ ``` bash
102+ nix-shell --pure --run " ./bashunit --simple"
103+ ```
104+
105+ Alternatively, if you just need Bash for a one-time execution and don’t want to rely on the ` shell.nix ` file:
106+
107+ ``` bash
108+ nix-shell -p bash --run " ./bashunit --simple"
109+ ```
110+
97111## Coding Guidelines
98112
99113### ShellCheck
Original file line number Diff line number Diff line change 1+ { pkgs ? import <nixpkgs> { } } :
2+
3+ pkgs . mkShell {
4+ buildInputs = [
5+ pkgs . bashInteractive
6+ pkgs . git
7+ pkgs . curl
8+ pkgs . perl
9+ ] ;
10+ }
You can’t perform that action at this time.
0 commit comments