Skip to content

Commit 4509f51

Browse files
committed
add support for nix packages
1 parent 949bba7 commit 4509f51

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
- uses: actions/setup-go@v3
2323
with:
2424
go-version: '^1.22'
25+
- uses: cachix/install-nix-action@v27
26+
with:
27+
nix_path: nixpkgs=channel:nixos-unstable
2528
- name: Install Dependencies
2629
run: |
2730
go install github.com/mattn/goveralls@latest

.goreleaser.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ release:
3636
name: crab
3737
draft: false
3838

39-
4039
## AUR
4140
aurs:
4241
- name: crab-bin
@@ -54,6 +53,18 @@ aurs:
5453
- &maintainer "Christopher Kaster <[email protected]>"
5554
license: &license MIT
5655

56+
## Nix:
57+
nix:
58+
- name: crab
59+
repository:
60+
owner: atomicptr
61+
name: nix
62+
branch: master
63+
token: "{{ .Env.GITHUB_TOKEN }}"
64+
homepage: *homepage
65+
description: *description
66+
license: mit
67+
5768
## Homebrew
5869
brews:
5970
- name: crab

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,21 @@ $ docker run --rm atomicptr/crab crawl:sitemap https://domain.com/sitemap.xml
4343

4444
[AUR](https://aur.archlinux.org/packages/crab-bin)
4545

46+
### Nix
47+
48+
Not available in nixpkgs but I have my own nix repository which you can use:
49+
50+
```nix
51+
let
52+
atomicptr = import (fetchTarball "https://github.com/atomicptr/nix/archive/refs/heads/master.tar.gz") {};
53+
in
54+
{
55+
environment.systemPackages = with pkgs; [
56+
atomicptr.crab
57+
];
58+
}
59+
````
60+
4661
### Homebrew
4762
4863
```bash

0 commit comments

Comments
 (0)