Skip to content

Commit 6415988

Browse files
authored
Merge pull request #38 from seanstrom/seanstrom/devbox-integration
chore: add devbox integration
2 parents b351426 + aef1f8c commit 6415988

File tree

5 files changed

+424
-0
lines changed

5 files changed

+424
-0
lines changed

.envrc-devbox

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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.7/.schema/devbox.schema.json",
3+
"packages": {
4+
"pkg-config": "latest",
5+
"icdiff": "latest",
6+
"cabal-install": "latest",
7+
8+
"zlib": {
9+
"version": "latest",
10+
"outputs": ["out", "dev"]
11+
},
12+
13+
"path:./nix/devbox#stack": "",
14+
"path:./nix/devbox#ghc": "",
15+
"path:./nix/devbox#cc": "",
16+
"path:./nix/devbox#hls": "",
17+
18+
"path:./nix/devbox#apple_sdk_CoreServices": {
19+
"platforms": ["x86_64-darwin", "aarch64-darwin"]
20+
},
21+
"path:./nix/devbox#apple_sdk_Cocoa": {
22+
"platforms": ["x86_64-darwin", "aarch64-darwin"]
23+
},
24+
"path:./nix/devbox#apple_sdk_CoreFoundation": {
25+
"platforms": ["x86_64-darwin", "aarch64-darwin"]
26+
}
27+
},
28+
"env": {
29+
"PATH": "$DEVBOX_PACKAGES_DIR/bin:$PATH:/usr/bin",
30+
"LD_LIBRARY_PATH": "$DEVBOX_PACKAGES_DIR/lib:$LD_LIBRARY_PATH"
31+
}
32+
}

devbox.lock

Lines changed: 281 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,281 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"cabal-install@latest": {
5+
"last_modified": "2025-01-09T11:09:19Z",
6+
"resolved": "github:NixOS/nixpkgs/32af3611f6f05655ca166a0b1f47b57c762b5192#cabal-install",
7+
"source": "devbox-search",
8+
"version": "3.12.1.0",
9+
"systems": {
10+
"aarch64-darwin": {
11+
"outputs": [
12+
{
13+
"name": "out",
14+
"path": "/nix/store/0k33gk9nix9cqxhs8080g7qhdfcwf981-cabal-install-3.12.1.0",
15+
"default": true
16+
}
17+
],
18+
"store_path": "/nix/store/0k33gk9nix9cqxhs8080g7qhdfcwf981-cabal-install-3.12.1.0"
19+
},
20+
"aarch64-linux": {
21+
"outputs": [
22+
{
23+
"name": "out",
24+
"path": "/nix/store/008pl9phlrdq4ffb6m1265qmsgjxfhim-cabal-install-3.12.1.0",
25+
"default": true
26+
}
27+
],
28+
"store_path": "/nix/store/008pl9phlrdq4ffb6m1265qmsgjxfhim-cabal-install-3.12.1.0"
29+
},
30+
"x86_64-darwin": {
31+
"outputs": [
32+
{
33+
"name": "out",
34+
"path": "/nix/store/qa6cn3wgshdzhlj1d4adkw114q596p5s-cabal-install-3.12.1.0",
35+
"default": true
36+
}
37+
],
38+
"store_path": "/nix/store/qa6cn3wgshdzhlj1d4adkw114q596p5s-cabal-install-3.12.1.0"
39+
},
40+
"x86_64-linux": {
41+
"outputs": [
42+
{
43+
"name": "out",
44+
"path": "/nix/store/93026b1rsfca97b606pvrfx7hkbifb3x-cabal-install-3.12.1.0",
45+
"default": true
46+
}
47+
],
48+
"store_path": "/nix/store/93026b1rsfca97b606pvrfx7hkbifb3x-cabal-install-3.12.1.0"
49+
}
50+
}
51+
},
52+
"icdiff@latest": {
53+
"last_modified": "2024-12-23T21:10:33Z",
54+
"resolved": "github:NixOS/nixpkgs/de1864217bfa9b5845f465e771e0ecb48b30e02d#icdiff",
55+
"source": "devbox-search",
56+
"version": "1.9.5",
57+
"systems": {
58+
"aarch64-darwin": {
59+
"outputs": [
60+
{
61+
"name": "out",
62+
"path": "/nix/store/m3wdmljam3mw7g6ggbjqbnyq2nm4bqfv-icdiff-1.9.5",
63+
"default": true
64+
},
65+
{
66+
"name": "dist",
67+
"path": "/nix/store/fv2k40l636wzcb1yf61nm8gimydgayk3-icdiff-1.9.5-dist"
68+
}
69+
],
70+
"store_path": "/nix/store/m3wdmljam3mw7g6ggbjqbnyq2nm4bqfv-icdiff-1.9.5"
71+
},
72+
"aarch64-linux": {
73+
"outputs": [
74+
{
75+
"name": "out",
76+
"path": "/nix/store/b65f7jq851n32jk0hwns3xvw7k94h9pa-icdiff-1.9.5",
77+
"default": true
78+
},
79+
{
80+
"name": "dist",
81+
"path": "/nix/store/zv96xq2hf1z04r4d721z89yd4c8ry128-icdiff-1.9.5-dist"
82+
}
83+
],
84+
"store_path": "/nix/store/b65f7jq851n32jk0hwns3xvw7k94h9pa-icdiff-1.9.5"
85+
},
86+
"x86_64-darwin": {
87+
"outputs": [
88+
{
89+
"name": "out",
90+
"path": "/nix/store/fxxyp2j8zsc0kwcpxsig395y3v93xcnk-icdiff-1.9.5",
91+
"default": true
92+
},
93+
{
94+
"name": "dist",
95+
"path": "/nix/store/bg544djkgkpf61njmd0qhkmva7942p5w-icdiff-1.9.5-dist"
96+
}
97+
],
98+
"store_path": "/nix/store/fxxyp2j8zsc0kwcpxsig395y3v93xcnk-icdiff-1.9.5"
99+
},
100+
"x86_64-linux": {
101+
"outputs": [
102+
{
103+
"name": "out",
104+
"path": "/nix/store/rh628inlxjnd5d0za1ihxbbv37h4ssdw-icdiff-1.9.5",
105+
"default": true
106+
},
107+
{
108+
"name": "dist",
109+
"path": "/nix/store/sjdkv66wx8lm9253fwp5gh89rflfmqxp-icdiff-1.9.5-dist"
110+
}
111+
],
112+
"store_path": "/nix/store/rh628inlxjnd5d0za1ihxbbv37h4ssdw-icdiff-1.9.5"
113+
}
114+
}
115+
},
116+
"pkg-config@latest": {
117+
"last_modified": "2024-12-23T21:10:33Z",
118+
"resolved": "github:NixOS/nixpkgs/de1864217bfa9b5845f465e771e0ecb48b30e02d#pkg-config",
119+
"source": "devbox-search",
120+
"version": "0.29.2",
121+
"systems": {
122+
"aarch64-darwin": {
123+
"outputs": [
124+
{
125+
"name": "out",
126+
"path": "/nix/store/8q86l30fjpgf800jwahdn4kylm99ibg5-pkg-config-wrapper-0.29.2",
127+
"default": true
128+
},
129+
{
130+
"name": "man",
131+
"path": "/nix/store/5jysq3g0p4aj4bc9vh52db1ix0f5q767-pkg-config-wrapper-0.29.2-man",
132+
"default": true
133+
},
134+
{
135+
"name": "doc",
136+
"path": "/nix/store/vy7bpc8rb4x027gsvx1dy3kzlgd1jg7i-pkg-config-wrapper-0.29.2-doc"
137+
}
138+
],
139+
"store_path": "/nix/store/8q86l30fjpgf800jwahdn4kylm99ibg5-pkg-config-wrapper-0.29.2"
140+
},
141+
"aarch64-linux": {
142+
"outputs": [
143+
{
144+
"name": "out",
145+
"path": "/nix/store/ivyizy8i8zg04mibiqh672ljx7zns2qs-pkg-config-wrapper-0.29.2",
146+
"default": true
147+
},
148+
{
149+
"name": "man",
150+
"path": "/nix/store/5cx279ky7hi0j7zdn9rrrp7962bqvjv0-pkg-config-wrapper-0.29.2-man",
151+
"default": true
152+
},
153+
{
154+
"name": "doc",
155+
"path": "/nix/store/wdhr09g0h453xi752fhq654hmnds5z5v-pkg-config-wrapper-0.29.2-doc"
156+
}
157+
],
158+
"store_path": "/nix/store/ivyizy8i8zg04mibiqh672ljx7zns2qs-pkg-config-wrapper-0.29.2"
159+
},
160+
"x86_64-darwin": {
161+
"outputs": [
162+
{
163+
"name": "out",
164+
"path": "/nix/store/ra4ajarnml1xzbrp0ll5332f422ny2lc-pkg-config-wrapper-0.29.2",
165+
"default": true
166+
},
167+
{
168+
"name": "man",
169+
"path": "/nix/store/xy9yv26ii1yk1grqdfbnmjrjqmz4n9gm-pkg-config-wrapper-0.29.2-man",
170+
"default": true
171+
},
172+
{
173+
"name": "doc",
174+
"path": "/nix/store/qjsx2x66ckfrv3j98ns0clmig33fbb6d-pkg-config-wrapper-0.29.2-doc"
175+
}
176+
],
177+
"store_path": "/nix/store/ra4ajarnml1xzbrp0ll5332f422ny2lc-pkg-config-wrapper-0.29.2"
178+
},
179+
"x86_64-linux": {
180+
"outputs": [
181+
{
182+
"name": "out",
183+
"path": "/nix/store/0d4m43yp69lrm8imxbqgl9zxjwwz52jw-pkg-config-wrapper-0.29.2",
184+
"default": true
185+
},
186+
{
187+
"name": "man",
188+
"path": "/nix/store/xjpdc7ryah1y4l9m8qd5n1hcywfapwdi-pkg-config-wrapper-0.29.2-man",
189+
"default": true
190+
},
191+
{
192+
"name": "doc",
193+
"path": "/nix/store/m1hymzl44iajsldspj2xa5if0g4ladfd-pkg-config-wrapper-0.29.2-doc"
194+
}
195+
],
196+
"store_path": "/nix/store/0d4m43yp69lrm8imxbqgl9zxjwwz52jw-pkg-config-wrapper-0.29.2"
197+
}
198+
}
199+
},
200+
"zlib@latest": {
201+
"last_modified": "2025-01-15T03:10:46Z",
202+
"resolved": "github:NixOS/nixpkgs/0bd024d34eb07cef235f94258423f40a41182088#zlib",
203+
"source": "devbox-search",
204+
"version": "1.3.1",
205+
"systems": {
206+
"aarch64-darwin": {
207+
"outputs": [
208+
{
209+
"name": "out",
210+
"path": "/nix/store/5s3b3s1kc2i2y9j8zcm03nphg7lmcxrg-zlib-1.3.1",
211+
"default": true
212+
},
213+
{
214+
"name": "static",
215+
"path": "/nix/store/fag55rivkmydmfljv33ria8f1krr7lwg-zlib-1.3.1-static"
216+
},
217+
{
218+
"name": "dev",
219+
"path": "/nix/store/71xw751ph6bi99rr7ffbqqh0ikhdjz1d-zlib-1.3.1-dev"
220+
}
221+
],
222+
"store_path": "/nix/store/5s3b3s1kc2i2y9j8zcm03nphg7lmcxrg-zlib-1.3.1"
223+
},
224+
"aarch64-linux": {
225+
"outputs": [
226+
{
227+
"name": "out",
228+
"path": "/nix/store/9x5hfhl8gqgqj4iq6mkhkgxhy9zpsknr-zlib-1.3.1",
229+
"default": true
230+
},
231+
{
232+
"name": "dev",
233+
"path": "/nix/store/2him7162mh9pcbxz5i9xwdpssyimlzfd-zlib-1.3.1-dev"
234+
},
235+
{
236+
"name": "static",
237+
"path": "/nix/store/6fs5fnhzsmqq6jc5vmf0c8bjkk9fygx7-zlib-1.3.1-static"
238+
}
239+
],
240+
"store_path": "/nix/store/9x5hfhl8gqgqj4iq6mkhkgxhy9zpsknr-zlib-1.3.1"
241+
},
242+
"x86_64-darwin": {
243+
"outputs": [
244+
{
245+
"name": "out",
246+
"path": "/nix/store/z4yvzzm1cvlcpaakvj5wy7j0v8n2r18a-zlib-1.3.1",
247+
"default": true
248+
},
249+
{
250+
"name": "dev",
251+
"path": "/nix/store/r525ad0rjb5w30mbjjvp2pqn4h1yih3q-zlib-1.3.1-dev"
252+
},
253+
{
254+
"name": "static",
255+
"path": "/nix/store/5rm6spch337xg4rzx91jrl7scha8fk1l-zlib-1.3.1-static"
256+
}
257+
],
258+
"store_path": "/nix/store/z4yvzzm1cvlcpaakvj5wy7j0v8n2r18a-zlib-1.3.1"
259+
},
260+
"x86_64-linux": {
261+
"outputs": [
262+
{
263+
"name": "out",
264+
"path": "/nix/store/cqlaa2xf6lslnizyj9xqa8j0ii1yqw0x-zlib-1.3.1",
265+
"default": true
266+
},
267+
{
268+
"name": "static",
269+
"path": "/nix/store/9qiki938i359zih1y9hc19ibs6k8ib0y-zlib-1.3.1-static"
270+
},
271+
{
272+
"name": "dev",
273+
"path": "/nix/store/1lggwqzapn5mn49l9zy4h566ysv9kzdb-zlib-1.3.1-dev"
274+
}
275+
],
276+
"store_path": "/nix/store/cqlaa2xf6lslnizyj9xqa8j0ii1yqw0x-zlib-1.3.1"
277+
}
278+
}
279+
}
280+
}
281+
}

nix/devbox/flake.lock

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

0 commit comments

Comments
 (0)