From fcf6d7d817b675d5ecf609f2cb84fd5b3c5a291a Mon Sep 17 00:00:00 2001 From: cy Date: Tue, 1 Apr 2025 17:21:26 -0400 Subject: [PATCH] add direnv and nix installation instructions to README --- .envrc | 1 + .gitignore | 1 + README.md | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index ea8c4bf..2d5df85 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +.direnv diff --git a/README.md b/README.md index 199b5f5..9265a87 100644 --- a/README.md +++ b/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 ``` \ No newline at end of file