Skip to content

Commit b1ec694

Browse files
feat(setup): add nix build instructions
This creates a binary that can be used on NixOS.
1 parent 1253c0e commit b1ec694

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

flake.lock

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
description = "auto-doc: Github action that turns your reusable workflows and custom actions into easy to read markdown tables.";
3+
4+
inputs = {
5+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.11";
6+
};
7+
8+
outputs = {
9+
self,
10+
nixpkgs,
11+
}: let
12+
system = "x86_64-linux";
13+
in {
14+
packages.x86_64-linux.auto-doc = nixpkgs.legacyPackages.${system}.buildGoModule {
15+
pname = "auto-doc";
16+
version = "3.6.0";
17+
18+
src = ./.;
19+
vendorHash = "sha256-kO5xCO8bjs2vF4CS35odlhz17jPcpvQ6gdrE61p7x/w=";
20+
doCheck = false;
21+
};
22+
23+
packages.x86_64-linux.default = self.packages.x86_64-linux.auto-doc;
24+
};
25+
}

0 commit comments

Comments
 (0)