Skip to content

Commit

Permalink
Removed shell.nix
Browse files Browse the repository at this point in the history
Shell file is unnecessary if a default.nix exists
  • Loading branch information
Kaniel Kirby committed May 24, 2024
1 parent 4514132 commit bb8db2a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,18 @@ jobs:
run: cargo doc --all --no-deps
- name: Test with code coverage
run: cargo tarpaulin --release --engine llvm --follow-exec --post-test-delay 10 --coveralls ${{ secrets.COVERALLS_REPO_TOKEN }}

nix:
runs-on: ubuntu-latest
steps:
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v3
- name: Build default package
run: nix build --dry-run
run: nix build
- name: Smoke test default package
run: ./result/bin/rip2 --version

release-please:
name: Execute release chores
Expand All @@ -71,7 +77,7 @@ jobs:
pull-requests: write

runs-on: ubuntu-latest
needs: test
needs: [test, nix]

outputs:
created: ${{ steps.release.outputs.release_created }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
debug/
target/

# Generated by Nix
result

# These are backup files generated by rustfmt
**/*.rs.bk
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,19 @@ made available on the GitHub releases page: https://github.com/MilesCranmer/rip2

To install, simply open the archive and move the binary somewhere you can run it.

<details>
<summary>Nix</summary>

This repository is flake-compatible, and backwards-compatible with non-flake systems using `flake-compat`. It uses `naersk` to build the Rust package from source.
### Nix

#### Try Out Before Installing (With Flakes)
This repository is flake-compatible, and backwards-compatible with non-flake systems. Just run the following to test it out:

```bash
nix run "https://github.com/MilesCranmer/rip2"
```

<details>
<summary>Additional Nix options</summary>

The repo uses `flake-compat` for compatibility, and `naersk` to build the Rust package from source.

#### Add To Path Temporarily (With Flakes)

```bash
Expand Down
10 changes: 0 additions & 10 deletions shell.nix

This file was deleted.

0 comments on commit bb8db2a

Please sign in to comment.