You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -63,6 +63,14 @@ Hunk provides a Home Manager module to manage both the package and its configura
63
63
64
64
`enableGitIntegration` writes to Home Manager's Git configuration, so it requires Home Manager's Git module to be enabled with `programs.git.enable = true;`.
65
65
66
+
## Running from a flake
67
+
68
+
Run Hunk directly with Nix:
69
+
70
+
```bash
71
+
nix run github:modem-dev/hunk -- --help
72
+
```
73
+
66
74
## Updating Hunk
67
75
68
76
Flake users update Hunk by updating their own pinned `flake.lock` input:
Simply run `nix build .#packages.{YOUR_SYSTEM}.default` where YOUR_SYSTEM is one of `x86_64-linux`, `x86_64-darwin`, `aarch64-linux` or `aarch64-darwin`. The resulting
77
-
Hunk binary will be `./result/bin/hunk`.
84
+
Run `nix build` to build the default package for the current system. The resulting Hunk binary will be `./result/bin/hunk`.
85
+
86
+
You can also build the named package explicitly:
87
+
88
+
```bash
89
+
nix build .#hunk
90
+
```
78
91
79
92
## Maintainer dependency updates
80
93
@@ -83,3 +96,5 @@ When JavaScript or Bun dependencies change, regenerate the Nix dependency lockfi
83
96
```bash
84
97
bun run nix:update-lock
85
98
```
99
+
100
+
This script requires Nix and runs the flake-pinned `bun2nix` version from `flake.lock`.
0 commit comments