Skip to content

Commit e15273e

Browse files
committed
Document dev derivation
1 parent beb6b7f commit e15273e

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/test_prebuilt_binaries.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ jobs:
255255
- name: Build Flake and show celq version
256256
run: nix run github:IvanIsCoding/celq -- --version
257257

258-
test-nix-flake-latest:
259-
name: Test Nix flake (latest) validity and run
258+
test-nix-flake-dev:
259+
name: Test Nix flake (dev) validity and run
260260
runs-on: ubuntu-24.04
261261
steps:
262262
- name: Install Nix
@@ -266,8 +266,8 @@ jobs:
266266
extra_nix_config: |
267267
experimental-features = nix-command flakes
268268
269-
- name: Build Flake with latest version and show celq version
270-
run: nix run github:IvanIsCoding/celq#latest -- --version
269+
- name: Build Flake with dev version and show celq version
270+
run: nix run github:IvanIsCoding/celq#dev -- --version
271271

272272
test-freebsd-install:
273273
name: Test FreeBSD 14.3 (x86_64)
@@ -321,6 +321,7 @@ jobs:
321321
- test-winget-install
322322
- test-pixi-install
323323
- test-nix-flake
324+
- test-nix-flake-dev
324325
- test-freebsd-install
325326
runs-on: ubuntu-24.04
326327
if: always()
@@ -340,6 +341,7 @@ jobs:
340341
echo "- winget install: ${{ needs.test-winget-install.result }}"
341342
echo "- pixi (conda-forge): ${{ needs.test-pixi-install.result }}"
342343
echo "- nix flake: ${{ needs.test-nix-flake.result }}"
344+
echo "- nix flake (latest): ${{ needs.test-nix-flake-dev.result }}"
343345
echo "- freebsd install: ${{ needs.test-freebsd-install.result }}"
344346
345347
if [ "${{ needs.test-curl-install.result }}" != "success" ] || \
@@ -354,6 +356,7 @@ jobs:
354356
[ "${{ needs.test-winget-install.result }}" != "success" ] || \
355357
[ "${{ needs.test-pixi-install.result }}" != "success" ] || \
356358
[ "${{ needs.test-nix-flake.result }}" != "success" ] || \
359+
[ "${{ needs.test-nix-flake-dev.result }}" != "success" ] || \
357360
[ "${{ needs.test-freebsd-install.result }}" != "success" ]; then
358361
echo "One or more installation methods failed!"
359362
exit 1

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ If you are going to use `celq` in scripts or for multiple calls, we recommend us
131131
nix run github:IvanIsCoding/celq -- -n '"Hello World"'
132132
```
133133

134+
By default, Nix fetches the stable version from crates.io. If you want to run the code from HEAD, use the `dev` derivation:
135+
136+
```bash
137+
nix run github:IvanIsCoding/celq#dev -- -n '"Hello World"'
138+
```
139+
134140
See the [installation guide](https://docs.rs/celq/latest/celq/installation_guide) for other Nix setups.
135141

136142
### FreeBSD

docs/installation_guide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ If you are going to use `celq` in scripts or for multiple calls, we recommend us
134134
nix run github:IvanIsCoding/celq -- -n '"Hello World"'
135135
```
136136

137+
By default, Nix fetches the stable version from crates.io. If you want to run the code from HEAD, use the `dev` derivation:
138+
139+
```bash
140+
nix run github:IvanIsCoding/celq#dev -- -n '"Hello World"'
141+
```
142+
137143
We also include a `default.nix` for non-Flake users:
138144

139145
```bash

0 commit comments

Comments
 (0)