Skip to content

Commit 62eefe8

Browse files
committed
build: devbox
1 parent 3b0a369 commit 62eefe8

File tree

3 files changed

+175
-0
lines changed

3 files changed

+175
-0
lines changed

.envrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# Automatically sets up your devbox environment whenever you cd into this
4+
# directory via our direnv integration:
5+
6+
eval "$(devbox generate direnv --print-envrc)"
7+
8+
# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
9+
# for more details

devbox.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.0/.schema/devbox.schema.json",
3+
"packages": {
4+
"go": "1.22.6",
5+
"gopls": "latest",
6+
"golangci-lint": "latest"
7+
},
8+
"shell": {
9+
"scripts": {
10+
"test": ["echo \"Error: no test specified\" && exit 1"]
11+
}
12+
}
13+
}
14+

devbox.lock

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"github:NixOS/nixpkgs/nixpkgs-unstable": {
5+
"resolved": "github:NixOS/nixpkgs/2bfc080955153be0be56724be6fa5477b4eefabb?lastModified=1743689281&narHash=sha256-y7Hg5lwWhEOgflEHRfzSH96BOt26LaYfrYWzZ%2BVoVdg%3D"
6+
},
7+
"go@1.22.6": {
8+
"last_modified": "2024-08-31T10:12:23Z",
9+
"resolved": "github:NixOS/nixpkgs/5629520edecb69630a3f4d17d3d33fc96c13f6fe#go",
10+
"source": "devbox-search",
11+
"version": "1.22.6",
12+
"systems": {
13+
"aarch64-darwin": {
14+
"outputs": [
15+
{
16+
"name": "out",
17+
"path": "/nix/store/bman2jjx2ykfclj3g0wb89cxyzqygh8y-go-1.22.6",
18+
"default": true
19+
}
20+
],
21+
"store_path": "/nix/store/bman2jjx2ykfclj3g0wb89cxyzqygh8y-go-1.22.6"
22+
},
23+
"aarch64-linux": {
24+
"outputs": [
25+
{
26+
"name": "out",
27+
"path": "/nix/store/gnm672jywl1b778ql6pf57xka45452b6-go-1.22.6",
28+
"default": true
29+
}
30+
],
31+
"store_path": "/nix/store/gnm672jywl1b778ql6pf57xka45452b6-go-1.22.6"
32+
},
33+
"x86_64-darwin": {
34+
"outputs": [
35+
{
36+
"name": "out",
37+
"path": "/nix/store/qvr3slzx5av20xkw6i97yz7wla9sf4nc-go-1.22.6",
38+
"default": true
39+
}
40+
],
41+
"store_path": "/nix/store/qvr3slzx5av20xkw6i97yz7wla9sf4nc-go-1.22.6"
42+
},
43+
"x86_64-linux": {
44+
"outputs": [
45+
{
46+
"name": "out",
47+
"path": "/nix/store/6rybf4g5b77kz27k07avr7qd44ssw3l2-go-1.22.6",
48+
"default": true
49+
}
50+
],
51+
"store_path": "/nix/store/6rybf4g5b77kz27k07avr7qd44ssw3l2-go-1.22.6"
52+
}
53+
}
54+
},
55+
"golangci-lint@latest": {
56+
"last_modified": "2025-03-25T17:32:05Z",
57+
"resolved": "github:NixOS/nixpkgs/25d1b84f5c90632a623c48d83a2faf156451e6b1#golangci-lint",
58+
"source": "devbox-search",
59+
"version": "2.0.0",
60+
"systems": {
61+
"aarch64-darwin": {
62+
"outputs": [
63+
{
64+
"name": "out",
65+
"path": "/nix/store/idv9cyl4i6w9n4sgc29kvqhywm04n1rz-golangci-lint-2.0.0",
66+
"default": true
67+
}
68+
],
69+
"store_path": "/nix/store/idv9cyl4i6w9n4sgc29kvqhywm04n1rz-golangci-lint-2.0.0"
70+
},
71+
"aarch64-linux": {
72+
"outputs": [
73+
{
74+
"name": "out",
75+
"path": "/nix/store/r0jxwvqvk2999dx04v3j9jgd46jscqc4-golangci-lint-2.0.0",
76+
"default": true
77+
}
78+
],
79+
"store_path": "/nix/store/r0jxwvqvk2999dx04v3j9jgd46jscqc4-golangci-lint-2.0.0"
80+
},
81+
"x86_64-darwin": {
82+
"outputs": [
83+
{
84+
"name": "out",
85+
"path": "/nix/store/lsyy8arab3zvkpi8lr9303mf88y5k1rc-golangci-lint-2.0.0",
86+
"default": true
87+
}
88+
],
89+
"store_path": "/nix/store/lsyy8arab3zvkpi8lr9303mf88y5k1rc-golangci-lint-2.0.0"
90+
},
91+
"x86_64-linux": {
92+
"outputs": [
93+
{
94+
"name": "out",
95+
"path": "/nix/store/834gvbmhpwvy1d65r5x4xihkxm4g91ab-golangci-lint-2.0.0",
96+
"default": true
97+
}
98+
],
99+
"store_path": "/nix/store/834gvbmhpwvy1d65r5x4xihkxm4g91ab-golangci-lint-2.0.0"
100+
}
101+
}
102+
},
103+
"gopls@latest": {
104+
"last_modified": "2025-03-25T17:32:05Z",
105+
"resolved": "github:NixOS/nixpkgs/25d1b84f5c90632a623c48d83a2faf156451e6b1#gopls",
106+
"source": "devbox-search",
107+
"version": "0.18.1",
108+
"systems": {
109+
"aarch64-darwin": {
110+
"outputs": [
111+
{
112+
"name": "out",
113+
"path": "/nix/store/1yhl06d3rp0v9nzj9w11d91mzdib9li0-gopls-0.18.1",
114+
"default": true
115+
}
116+
],
117+
"store_path": "/nix/store/1yhl06d3rp0v9nzj9w11d91mzdib9li0-gopls-0.18.1"
118+
},
119+
"aarch64-linux": {
120+
"outputs": [
121+
{
122+
"name": "out",
123+
"path": "/nix/store/f276ys7dbl1c4h5i3yc1yavwn4vkznpm-gopls-0.18.1",
124+
"default": true
125+
}
126+
],
127+
"store_path": "/nix/store/f276ys7dbl1c4h5i3yc1yavwn4vkznpm-gopls-0.18.1"
128+
},
129+
"x86_64-darwin": {
130+
"outputs": [
131+
{
132+
"name": "out",
133+
"path": "/nix/store/idmdsky8xd2dcwkiwsxka50lwmp6f9s3-gopls-0.18.1",
134+
"default": true
135+
}
136+
],
137+
"store_path": "/nix/store/idmdsky8xd2dcwkiwsxka50lwmp6f9s3-gopls-0.18.1"
138+
},
139+
"x86_64-linux": {
140+
"outputs": [
141+
{
142+
"name": "out",
143+
"path": "/nix/store/2w4s5abaqwm45wkkwwf15yyw5dcrqs7m-gopls-0.18.1",
144+
"default": true
145+
}
146+
],
147+
"store_path": "/nix/store/2w4s5abaqwm45wkkwwf15yyw5dcrqs7m-gopls-0.18.1"
148+
}
149+
}
150+
}
151+
}
152+
}

0 commit comments

Comments
 (0)