add direnv and nix installation instructions to README
This commit is contained in:
parent
c4fcc2b026
commit
fcf6d7d817
3 changed files with 15 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
/target
|
||||
.direnv
|
||||
|
|
13
README.md
13
README.md
|
@ -23,4 +23,17 @@ Options:
|
|||
Print help
|
||||
-V, --version
|
||||
Print version
|
||||
```
|
||||
|
||||
## Install with nix
|
||||
```
|
||||
nix profile install git+https://git.cy7.sh/cy/nixcp.git
|
||||
```
|
||||
Or run without installing:
|
||||
```
|
||||
nix run git+https://git.cy7.sh/cy/nixcp.git
|
||||
```
|
||||
Separate arguments with `--` to pass them through to `nixcp` like so:
|
||||
```
|
||||
nix run git+https://git.cy7.sh/cy/nixcp.git -- --help
|
||||
```
|
Loading…
Add table
Reference in a new issue