Skip to content

Commit 9faf37c

Browse files
committed
chore: added devbox and direnv support
1 parent 2f29696 commit 9faf37c

4 files changed

Lines changed: 200 additions & 0 deletions

File tree

.envrc

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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.venv
2+
.devbox

devbox.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json",
3+
"packages": [
4+
"python@3.10",
5+
"pre-commit@latest",
6+
"powershell@latest"
7+
],
8+
"env": {
9+
"VENV_DIR": ".venv"
10+
},
11+
"shell": {
12+
"init_hook": [],
13+
"scripts": {
14+
"init_hook": ". $VENV_DIR/bin/activate"
15+
}
16+
}
17+
}

devbox.lock

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"powershell@latest": {
5+
"last_modified": "2024-08-14T11:41:26Z",
6+
"resolved": "github:NixOS/nixpkgs/0cb2fd7c59fed0cd82ef858cbcbdb552b9a33465#powershell",
7+
"source": "devbox-search",
8+
"version": "7.4.4",
9+
"systems": {
10+
"aarch64-darwin": {
11+
"outputs": [
12+
{
13+
"name": "out",
14+
"path": "/nix/store/1c3iwjs0ddqb7kdx5zmprjzc1c7q66nd-powershell-7.4.4",
15+
"default": true
16+
}
17+
],
18+
"store_path": "/nix/store/1c3iwjs0ddqb7kdx5zmprjzc1c7q66nd-powershell-7.4.4"
19+
},
20+
"aarch64-linux": {
21+
"outputs": [
22+
{
23+
"name": "out",
24+
"path": "/nix/store/1z5iwfjyk9njv7b3ci6g65m1klp6sxka-powershell-7.4.4",
25+
"default": true
26+
}
27+
],
28+
"store_path": "/nix/store/1z5iwfjyk9njv7b3ci6g65m1klp6sxka-powershell-7.4.4"
29+
},
30+
"x86_64-darwin": {
31+
"outputs": [
32+
{
33+
"name": "out",
34+
"path": "/nix/store/vvbz3b5c0kzgacn087bcxjby5zv8jnzq-powershell-7.4.4",
35+
"default": true
36+
}
37+
],
38+
"store_path": "/nix/store/vvbz3b5c0kzgacn087bcxjby5zv8jnzq-powershell-7.4.4"
39+
},
40+
"x86_64-linux": {
41+
"outputs": [
42+
{
43+
"name": "out",
44+
"path": "/nix/store/dy45aagnjpfml085n3scq1dn5g90r1f1-powershell-7.4.4",
45+
"default": true
46+
}
47+
],
48+
"store_path": "/nix/store/dy45aagnjpfml085n3scq1dn5g90r1f1-powershell-7.4.4"
49+
}
50+
}
51+
},
52+
"pre-commit@latest": {
53+
"last_modified": "2024-08-20T00:35:34Z",
54+
"resolved": "github:NixOS/nixpkgs/f02fa2f654c7bcc45f0e815c29d093da7f1245b4#pre-commit",
55+
"source": "devbox-search",
56+
"version": "3.7.1",
57+
"systems": {
58+
"aarch64-darwin": {
59+
"outputs": [
60+
{
61+
"name": "out",
62+
"path": "/nix/store/5g11pxjl7fzbk0cqm26adax4px22q21s-pre-commit-3.7.1",
63+
"default": true
64+
},
65+
{
66+
"name": "dist",
67+
"path": "/nix/store/4icxi40wp076bghxrd0qw0g4k3m6gw0b-pre-commit-3.7.1-dist"
68+
}
69+
],
70+
"store_path": "/nix/store/5g11pxjl7fzbk0cqm26adax4px22q21s-pre-commit-3.7.1"
71+
},
72+
"aarch64-linux": {
73+
"outputs": [
74+
{
75+
"name": "out",
76+
"path": "/nix/store/a3zgz8z40lfm8hbzm7zwyb6asihvw2vy-pre-commit-3.7.1",
77+
"default": true
78+
},
79+
{
80+
"name": "dist",
81+
"path": "/nix/store/ws7hsr0qhfi8449811914kx8cxlkrf4m-pre-commit-3.7.1-dist"
82+
}
83+
],
84+
"store_path": "/nix/store/a3zgz8z40lfm8hbzm7zwyb6asihvw2vy-pre-commit-3.7.1"
85+
},
86+
"x86_64-darwin": {
87+
"outputs": [
88+
{
89+
"name": "out",
90+
"path": "/nix/store/ic2z6ghkkg254b6bziy4f7wp33yqwxrj-pre-commit-3.7.1",
91+
"default": true
92+
},
93+
{
94+
"name": "dist",
95+
"path": "/nix/store/9hhf1d4lf3gkvaldj8a9csghalk23b8s-pre-commit-3.7.1-dist"
96+
}
97+
],
98+
"store_path": "/nix/store/ic2z6ghkkg254b6bziy4f7wp33yqwxrj-pre-commit-3.7.1"
99+
},
100+
"x86_64-linux": {
101+
"outputs": [
102+
{
103+
"name": "out",
104+
"path": "/nix/store/3prj2gccvgpr5fmp0lrm25n7mriw8zba-pre-commit-3.7.1",
105+
"default": true
106+
},
107+
{
108+
"name": "dist",
109+
"path": "/nix/store/p34zc85j5q4hiwca4v196xh57c89lmiz-pre-commit-3.7.1-dist"
110+
}
111+
],
112+
"store_path": "/nix/store/3prj2gccvgpr5fmp0lrm25n7mriw8zba-pre-commit-3.7.1"
113+
}
114+
}
115+
},
116+
"python@3.10": {
117+
"last_modified": "2024-08-14T11:41:26Z",
118+
"plugin_version": "0.0.3",
119+
"resolved": "github:NixOS/nixpkgs/0cb2fd7c59fed0cd82ef858cbcbdb552b9a33465#python310",
120+
"source": "devbox-search",
121+
"version": "3.10.14",
122+
"systems": {
123+
"aarch64-darwin": {
124+
"outputs": [
125+
{
126+
"name": "out",
127+
"path": "/nix/store/1l73sya48bffkjv10rf7fcn3nvnz1zvl-python3-3.10.14",
128+
"default": true
129+
}
130+
],
131+
"store_path": "/nix/store/1l73sya48bffkjv10rf7fcn3nvnz1zvl-python3-3.10.14"
132+
},
133+
"aarch64-linux": {
134+
"outputs": [
135+
{
136+
"name": "out",
137+
"path": "/nix/store/fa9jr4mkdnmn0m5f41yzwx8qba7mmzsz-python3-3.10.14",
138+
"default": true
139+
},
140+
{
141+
"name": "debug",
142+
"path": "/nix/store/zccb88kbi1scvs2rqkza6b81j3vw1sia-python3-3.10.14-debug"
143+
}
144+
],
145+
"store_path": "/nix/store/fa9jr4mkdnmn0m5f41yzwx8qba7mmzsz-python3-3.10.14"
146+
},
147+
"x86_64-darwin": {
148+
"outputs": [
149+
{
150+
"name": "out",
151+
"path": "/nix/store/ys3fwrmrh00gw5nyr27a693hz4593sn2-python3-3.10.14",
152+
"default": true
153+
}
154+
],
155+
"store_path": "/nix/store/ys3fwrmrh00gw5nyr27a693hz4593sn2-python3-3.10.14"
156+
},
157+
"x86_64-linux": {
158+
"outputs": [
159+
{
160+
"name": "out",
161+
"path": "/nix/store/25j36x4pjsn1sr3597gppa7sdn2c2v0n-python3-3.10.14",
162+
"default": true
163+
},
164+
{
165+
"name": "debug",
166+
"path": "/nix/store/k5p6bi63nzhydp2srm86kzsky8arwyfm-python3-3.10.14-debug"
167+
}
168+
],
169+
"store_path": "/nix/store/25j36x4pjsn1sr3597gppa7sdn2c2v0n-python3-3.10.14"
170+
}
171+
}
172+
}
173+
}
174+
}

0 commit comments

Comments
 (0)