add direnv and nix installation instructions to README

This commit is contained in:
cy 2025-04-01 17:21:26 -04:00
parent c4fcc2b026
commit fcf6d7d817
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
3 changed files with 15 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View file

@ -1 +1,2 @@
/target
.direnv

View file

@ -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
```