Skip to content

Commit

Permalink
add nix package (#1)
Browse files Browse the repository at this point in the history
* add nix package

packaged using:

```bash
nix flake init --template github:nix-community/crate2nix
```
  • Loading branch information
KiaraGrouwstra authored Jul 23, 2024
1 parent caf9e5c commit 469bf69
Show file tree
Hide file tree
Showing 8 changed files with 494 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# ^ make editor happy

#
# Use https://direnv.net/ to automatically load the dev shell.
#

if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4="
fi

watch_file nix/**
watch_file -- **/*.nix
# Adding files to git includes them in a flake
# But it is also a bit much reloading.
# watch_file .git/index .git/HEAD
use flake . --show-trace
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.direnv/
/target
**/*.rs.bk
*.db
/.meta
/build
/.vscode
/.vscode
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ cargo build --release # add or remove any features with --features
cp target/release/hullcaster ~/.local/bin
```

### NixOS / Nix

With [flakes](https://wiki.nixos.org/wiki/Flakes) enabled, run:

```bash
nix run github:gilcu3/hullcaster
```

## Running hullcaster

In your terminal, run:
Expand Down
335 changes: 335 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 469bf69

Please sign in to comment.