Skip to content

Commit 2060492

Browse files
committed
refactor: devbox setup
1 parent ac709d2 commit 2060492

File tree

6 files changed

+436
-102
lines changed

6 files changed

+436
-102
lines changed

devbox.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,7 @@
1212
"PATH": "$PATH:$HOME/go/bin"
1313
},
1414
"shell": {
15-
"init_hook": [
16-
"echo '\nWelcome to the Tempo devbox!\n'",
17-
"echo '* Set GOROOT'",
18-
"export GOROOT=$(go env GOROOT)",
19-
"echo '* Set Git hooks path\n'",
20-
"find .githooks -type f -exec chmod +x {} \\;",
21-
"git config core.hooksPath .githooks",
22-
"echo '* Install go-modernize'",
23-
"go install golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest"
24-
],
15+
"init_hook": ["sh scripts/devbox-init.sh"],
2516
"scripts": {}
2617
}
2718
}

devbox.lock

Lines changed: 84 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -76,239 +76,231 @@
7676
"github:NixOS/nixpkgs/nixpkgs-unstable": {
7777
"resolved": "github:NixOS/nixpkgs/ed0b1881565c1ffef490c10d663d4f542031dad3?lastModified=1741402956&narHash=sha256-y2hByvBM03s9T2fpeLjW6iprbxnhV9mJMmSwCHc41ZQ%3D"
7878
},
79-
"gnumake@latest": {
80-
"last_modified": "2025-02-07T11:26:36Z",
81-
"resolved": "github:NixOS/nixpkgs/d98abf5cf5914e5e4e9d57205e3af55ca90ffc1d#gnumake",
79+
"go@latest": {
80+
"last_modified": "2025-12-31T03:27:36Z",
81+
"resolved": "github:NixOS/nixpkgs/f665af0cdb70ed27e1bd8f9fdfecaf451260fc55#go",
8282
"source": "devbox-search",
83-
"version": "4.4.1",
83+
"version": "1.25.5",
8484
"systems": {
8585
"aarch64-darwin": {
8686
"outputs": [
8787
{
8888
"name": "out",
89-
"path": "/nix/store/sbi3qw92i2lmm50agfl6hyys4ns5p1cb-gnumake-4.4.1",
89+
"path": "/nix/store/fy2aq0rg6vbiyjfdpqy3429hqsan7iwm-go-1.25.5",
9090
"default": true
91-
},
92-
{
93-
"name": "man",
94-
"path": "/nix/store/wy7f1yyfq701271vnrr2f5kzbq14ldwb-gnumake-4.4.1-man",
95-
"default": true
96-
},
97-
{
98-
"name": "info",
99-
"path": "/nix/store/hawnsgjd9lxxdwgbs3vmqf0074kdzzwg-gnumake-4.4.1-info"
10091
}
10192
],
102-
"store_path": "/nix/store/sbi3qw92i2lmm50agfl6hyys4ns5p1cb-gnumake-4.4.1"
93+
"store_path": "/nix/store/fy2aq0rg6vbiyjfdpqy3429hqsan7iwm-go-1.25.5"
10394
},
10495
"aarch64-linux": {
10596
"outputs": [
10697
{
10798
"name": "out",
108-
"path": "/nix/store/1bpzdjww9yy9m3a1plxldg62wcjmk2xp-gnumake-4.4.1",
99+
"path": "/nix/store/30d96229dgrh6n6bmd4hn9r1hcngj9bn-go-1.25.5",
109100
"default": true
110-
},
111-
{
112-
"name": "man",
113-
"path": "/nix/store/08b54hn46qgaxb785f4a5xnglni14j09-gnumake-4.4.1-man",
114-
"default": true
115-
},
116-
{
117-
"name": "debug",
118-
"path": "/nix/store/gjdnyxla25610y0k3wkkzmp95agz4rbi-gnumake-4.4.1-debug"
119-
},
120-
{
121-
"name": "info",
122-
"path": "/nix/store/c9fxaq63vkxfry9nsqa64lnzdmb8xx6x-gnumake-4.4.1-info"
123101
}
124102
],
125-
"store_path": "/nix/store/1bpzdjww9yy9m3a1plxldg62wcjmk2xp-gnumake-4.4.1"
103+
"store_path": "/nix/store/30d96229dgrh6n6bmd4hn9r1hcngj9bn-go-1.25.5"
126104
},
127105
"x86_64-darwin": {
128106
"outputs": [
129107
{
130108
"name": "out",
131-
"path": "/nix/store/phxnsrf7p9ydqy9rzm1b2hgifj0sq2jf-gnumake-4.4.1",
132-
"default": true
133-
},
134-
{
135-
"name": "man",
136-
"path": "/nix/store/4hxywqd01lg9llz89xhpnkvbhs7kviw9-gnumake-4.4.1-man",
109+
"path": "/nix/store/wzakp2xy6if4n2b4fb1fkdjwilwlpifk-go-1.25.5",
137110
"default": true
138-
},
139-
{
140-
"name": "info",
141-
"path": "/nix/store/6svs2xnshx2hjl92mhknrw6b1j2fixj6-gnumake-4.4.1-info"
142111
}
143112
],
144-
"store_path": "/nix/store/phxnsrf7p9ydqy9rzm1b2hgifj0sq2jf-gnumake-4.4.1"
113+
"store_path": "/nix/store/wzakp2xy6if4n2b4fb1fkdjwilwlpifk-go-1.25.5"
145114
},
146115
"x86_64-linux": {
147116
"outputs": [
148117
{
149118
"name": "out",
150-
"path": "/nix/store/zi18rs3z305sn57biq8ahvfkcw17bkjm-gnumake-4.4.1",
119+
"path": "/nix/store/60z37432vmgkg54krwr1z057bqwp7583-go-1.25.5",
151120
"default": true
152-
},
153-
{
154-
"name": "man",
155-
"path": "/nix/store/sa0chp0fw3101292x6a6jx8crbfsg7wi-gnumake-4.4.1-man",
156-
"default": true
157-
},
158-
{
159-
"name": "debug",
160-
"path": "/nix/store/6aaydvwwhb5jr7zk32xyyj9wyv4cwh4a-gnumake-4.4.1-debug"
161-
},
162-
{
163-
"name": "info",
164-
"path": "/nix/store/dm92ddr8j4hc7h5zqav0r7kpzkrwzlrx-gnumake-4.4.1-info"
165121
}
166122
],
167-
"store_path": "/nix/store/zi18rs3z305sn57biq8ahvfkcw17bkjm-gnumake-4.4.1"
123+
"store_path": "/nix/store/60z37432vmgkg54krwr1z057bqwp7583-go-1.25.5"
168124
}
169125
}
170126
},
171-
"go-task@latest": {
172-
"last_modified": "2025-02-07T11:26:36Z",
173-
"resolved": "github:NixOS/nixpkgs/d98abf5cf5914e5e4e9d57205e3af55ca90ffc1d#go-task",
127+
"golangci-lint@latest": {
128+
"last_modified": "2025-02-16T21:44:05Z",
129+
"resolved": "github:NixOS/nixpkgs/f0204ef4baa3b6317dee1c84ddeffbd293638836#golangci-lint",
174130
"source": "devbox-search",
175-
"version": "3.41.0",
131+
"version": "1.64.5",
176132
"systems": {
177133
"aarch64-darwin": {
178134
"outputs": [
179135
{
180136
"name": "out",
181-
"path": "/nix/store/m0zc229zl4nfi9800dvxikyp31davmgl-go-task-3.41.0",
137+
"path": "/nix/store/jh2f466rbi0pgk6f3w8jdzy4qyccybz3-golangci-lint-1.64.5",
182138
"default": true
183139
}
184140
],
185-
"store_path": "/nix/store/m0zc229zl4nfi9800dvxikyp31davmgl-go-task-3.41.0"
141+
"store_path": "/nix/store/jh2f466rbi0pgk6f3w8jdzy4qyccybz3-golangci-lint-1.64.5"
186142
},
187143
"aarch64-linux": {
188144
"outputs": [
189145
{
190146
"name": "out",
191-
"path": "/nix/store/3yg6irq9bdr34krjp0nbrrpd8gzfr4ag-go-task-3.41.0",
147+
"path": "/nix/store/63mvzwlqana7bfcy8jzmn3fvkn46k0p6-golangci-lint-1.64.5",
192148
"default": true
193149
}
194150
],
195-
"store_path": "/nix/store/3yg6irq9bdr34krjp0nbrrpd8gzfr4ag-go-task-3.41.0"
151+
"store_path": "/nix/store/63mvzwlqana7bfcy8jzmn3fvkn46k0p6-golangci-lint-1.64.5"
196152
},
197153
"x86_64-darwin": {
198154
"outputs": [
199155
{
200156
"name": "out",
201-
"path": "/nix/store/slgvld5bfxl4caqi5jwwd583ay12cikj-go-task-3.41.0",
157+
"path": "/nix/store/d662i9k8p2alplmxc3bqypc646x7wy1b-golangci-lint-1.64.5",
202158
"default": true
203159
}
204160
],
205-
"store_path": "/nix/store/slgvld5bfxl4caqi5jwwd583ay12cikj-go-task-3.41.0"
161+
"store_path": "/nix/store/d662i9k8p2alplmxc3bqypc646x7wy1b-golangci-lint-1.64.5"
206162
},
207163
"x86_64-linux": {
208164
"outputs": [
209165
{
210166
"name": "out",
211-
"path": "/nix/store/jn35gb9isnqzr9mfwhmig40c6iflmadz-go-task-3.41.0",
167+
"path": "/nix/store/25732rsdh49iwjrik69sb9cfhiza00b5-golangci-lint-1.64.5",
212168
"default": true
213169
}
214170
],
215-
"store_path": "/nix/store/jn35gb9isnqzr9mfwhmig40c6iflmadz-go-task-3.41.0"
171+
"store_path": "/nix/store/25732rsdh49iwjrik69sb9cfhiza00b5-golangci-lint-1.64.5"
216172
}
217173
}
218174
},
219-
"go@1.24": {
220-
"last_modified": "2025-09-18T16:33:27Z",
221-
"resolved": "github:NixOS/nixpkgs/f4b140d5b253f5e2a1ff4e5506edbf8267724bde#go_1_24",
175+
"just@latest": {
176+
"last_modified": "2025-12-31T03:27:36Z",
177+
"resolved": "github:NixOS/nixpkgs/f665af0cdb70ed27e1bd8f9fdfecaf451260fc55#just",
222178
"source": "devbox-search",
223-
"version": "1.24.7",
179+
"version": "1.45.0",
224180
"systems": {
225181
"aarch64-darwin": {
226182
"outputs": [
227183
{
228184
"name": "out",
229-
"path": "/nix/store/wi6x7anr21niz0zaf4077pf7a6qj56xd-go-1.24.7",
185+
"path": "/nix/store/5hz4fd007knaygiq8fp70a97khnxlg90-just-1.45.0",
186+
"default": true
187+
},
188+
{
189+
"name": "man",
190+
"path": "/nix/store/hjn8apyjb74cjbck545xj9dr27d8km8y-just-1.45.0-man",
230191
"default": true
192+
},
193+
{
194+
"name": "doc",
195+
"path": "/nix/store/ljqfvli8iaqha81liqynn482ms9i5dkp-just-1.45.0-doc"
231196
}
232197
],
233-
"store_path": "/nix/store/wi6x7anr21niz0zaf4077pf7a6qj56xd-go-1.24.7"
198+
"store_path": "/nix/store/5hz4fd007knaygiq8fp70a97khnxlg90-just-1.45.0"
234199
},
235200
"aarch64-linux": {
236201
"outputs": [
237202
{
238203
"name": "out",
239-
"path": "/nix/store/l7xjyd3vdrlzjq7apswz394rmxsf94w8-go-1.24.7",
204+
"path": "/nix/store/ln40chcgpqp70zdrp6ajwa7pijqvm9wb-just-1.45.0",
240205
"default": true
206+
},
207+
{
208+
"name": "man",
209+
"path": "/nix/store/yqgw93rq91429xlspw18lq91bkbchih6-just-1.45.0-man",
210+
"default": true
211+
},
212+
{
213+
"name": "doc",
214+
"path": "/nix/store/q8w1nysibflbafgilcnlh3z4bynjbnlw-just-1.45.0-doc"
241215
}
242216
],
243-
"store_path": "/nix/store/l7xjyd3vdrlzjq7apswz394rmxsf94w8-go-1.24.7"
217+
"store_path": "/nix/store/ln40chcgpqp70zdrp6ajwa7pijqvm9wb-just-1.45.0"
244218
},
245219
"x86_64-darwin": {
246220
"outputs": [
247221
{
248222
"name": "out",
249-
"path": "/nix/store/g1dszpz67zfx7j7lqd1s3gz3pgygxzw7-go-1.24.7",
223+
"path": "/nix/store/8zsigmqp7y3nky0s26sc4rb6hqma6573-just-1.45.0",
224+
"default": true
225+
},
226+
{
227+
"name": "man",
228+
"path": "/nix/store/avp619v9vhifglhff4xv8x1q644kvdsr-just-1.45.0-man",
250229
"default": true
230+
},
231+
{
232+
"name": "doc",
233+
"path": "/nix/store/0n2kffdl71z3g37g4ga777sc2j8cdg7k-just-1.45.0-doc"
251234
}
252235
],
253-
"store_path": "/nix/store/g1dszpz67zfx7j7lqd1s3gz3pgygxzw7-go-1.24.7"
236+
"store_path": "/nix/store/8zsigmqp7y3nky0s26sc4rb6hqma6573-just-1.45.0"
254237
},
255238
"x86_64-linux": {
256239
"outputs": [
257240
{
258241
"name": "out",
259-
"path": "/nix/store/0a9wg4llssiax3c6a3d5lxw9brj4mpyn-go-1.24.7",
242+
"path": "/nix/store/gbyx7svp6kdn6hmsnz9id189d47ndax7-just-1.45.0",
243+
"default": true
244+
},
245+
{
246+
"name": "man",
247+
"path": "/nix/store/l0avb6zn5lq24shdz0r0ww2h3pdq55z6-just-1.45.0-man",
260248
"default": true
249+
},
250+
{
251+
"name": "doc",
252+
"path": "/nix/store/mfqv7g7ipkq7zzpml4q8ff48nb32wx1s-just-1.45.0-doc"
261253
}
262254
],
263-
"store_path": "/nix/store/0a9wg4llssiax3c6a3d5lxw9brj4mpyn-go-1.24.7"
255+
"store_path": "/nix/store/gbyx7svp6kdn6hmsnz9id189d47ndax7-just-1.45.0"
264256
}
265257
}
266258
},
267-
"golangci-lint@latest": {
268-
"last_modified": "2025-02-16T21:44:05Z",
269-
"resolved": "github:NixOS/nixpkgs/f0204ef4baa3b6317dee1c84ddeffbd293638836#golangci-lint",
259+
"prek@latest": {
260+
"last_modified": "2026-01-02T14:39:32Z",
261+
"resolved": "github:NixOS/nixpkgs/16c7794d0a28b5a37904d55bcca36003b9109aaa#prek",
270262
"source": "devbox-search",
271-
"version": "1.64.5",
263+
"version": "0.2.20",
272264
"systems": {
273265
"aarch64-darwin": {
274266
"outputs": [
275267
{
276268
"name": "out",
277-
"path": "/nix/store/jh2f466rbi0pgk6f3w8jdzy4qyccybz3-golangci-lint-1.64.5",
269+
"path": "/nix/store/15fdgmgd42rv3hp84kmixfq861imd0qz-prek-0.2.20",
278270
"default": true
279271
}
280272
],
281-
"store_path": "/nix/store/jh2f466rbi0pgk6f3w8jdzy4qyccybz3-golangci-lint-1.64.5"
273+
"store_path": "/nix/store/15fdgmgd42rv3hp84kmixfq861imd0qz-prek-0.2.20"
282274
},
283275
"aarch64-linux": {
284276
"outputs": [
285277
{
286278
"name": "out",
287-
"path": "/nix/store/63mvzwlqana7bfcy8jzmn3fvkn46k0p6-golangci-lint-1.64.5",
279+
"path": "/nix/store/g47pxw0y3s2hqcg5mdhyzhkv47d8a2c5-prek-0.2.20",
288280
"default": true
289281
}
290282
],
291-
"store_path": "/nix/store/63mvzwlqana7bfcy8jzmn3fvkn46k0p6-golangci-lint-1.64.5"
283+
"store_path": "/nix/store/g47pxw0y3s2hqcg5mdhyzhkv47d8a2c5-prek-0.2.20"
292284
},
293285
"x86_64-darwin": {
294286
"outputs": [
295287
{
296288
"name": "out",
297-
"path": "/nix/store/d662i9k8p2alplmxc3bqypc646x7wy1b-golangci-lint-1.64.5",
289+
"path": "/nix/store/dbjhvi8706nhan32yhkkn622qfmzl6x8-prek-0.2.20",
298290
"default": true
299291
}
300292
],
301-
"store_path": "/nix/store/d662i9k8p2alplmxc3bqypc646x7wy1b-golangci-lint-1.64.5"
293+
"store_path": "/nix/store/dbjhvi8706nhan32yhkkn622qfmzl6x8-prek-0.2.20"
302294
},
303295
"x86_64-linux": {
304296
"outputs": [
305297
{
306298
"name": "out",
307-
"path": "/nix/store/25732rsdh49iwjrik69sb9cfhiza00b5-golangci-lint-1.64.5",
299+
"path": "/nix/store/51xbrv3jqv1mrsglqfk53p8hppl96f5l-prek-0.2.20",
308300
"default": true
309301
}
310302
],
311-
"store_path": "/nix/store/25732rsdh49iwjrik69sb9cfhiza00b5-golangci-lint-1.64.5"
303+
"store_path": "/nix/store/51xbrv3jqv1mrsglqfk53p8hppl96f5l-prek-0.2.20"
312304
}
313305
}
314306
}

0 commit comments

Comments
 (0)