Skip to content

Commit 87e72be

Browse files
committed
build: Install protoc via Flox from Nix instead of ASDF
1 parent cb47c87 commit 87e72be

File tree

3 files changed

+172
-43
lines changed

3 files changed

+172
-43
lines changed

.flox/env/manifest.lock

Lines changed: 166 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"manifest": {
44
"version": 1,
55
"install": {
6+
"protobuf": {
7+
"pkg-path": "protobuf",
8+
"version": "29.2"
9+
},
610
"python3": {
711
"pkg-path": "python312"
812
}
@@ -30,30 +34,151 @@
3034
}
3135
},
3236
"packages": [
37+
{
38+
"attr_path": "protobuf",
39+
"broken": false,
40+
"derivation": "/nix/store/5biik4lz9fgsgbl0zf5d9qj5zxjbmqk2-protobuf-29.2.drv",
41+
"description": "Google's data interchange format",
42+
"install_id": "protobuf",
43+
"license": "BSD-3-Clause",
44+
"locked_url": "https://github.com/flox/nixpkgs?rev=799ba5bffed04ced7067a91798353d360788b30d",
45+
"name": "protobuf-29.2",
46+
"pname": "protobuf",
47+
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
48+
"rev_count": 747653,
49+
"rev_date": "2025-02-04T14:46:40Z",
50+
"scrape_date": "2025-02-05T00:30:07Z",
51+
"stabilities": [
52+
"staging",
53+
"unstable"
54+
],
55+
"unfree": false,
56+
"version": "29.2",
57+
"outputs_to_install": [
58+
"out"
59+
],
60+
"outputs": {
61+
"out": "/nix/store/rf1k2r8bh34i23za7w9g5nf459sldbb5-protobuf-29.2"
62+
},
63+
"system": "aarch64-darwin",
64+
"group": "toplevel",
65+
"priority": 5
66+
},
67+
{
68+
"attr_path": "protobuf",
69+
"broken": false,
70+
"derivation": "/nix/store/gyh22g7yaa82qgkmpf9vskwcnphwilzg-protobuf-29.2.drv",
71+
"description": "Google's data interchange format",
72+
"install_id": "protobuf",
73+
"license": "BSD-3-Clause",
74+
"locked_url": "https://github.com/flox/nixpkgs?rev=799ba5bffed04ced7067a91798353d360788b30d",
75+
"name": "protobuf-29.2",
76+
"pname": "protobuf",
77+
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
78+
"rev_count": 747653,
79+
"rev_date": "2025-02-04T14:46:40Z",
80+
"scrape_date": "2025-02-05T00:30:07Z",
81+
"stabilities": [
82+
"staging",
83+
"unstable"
84+
],
85+
"unfree": false,
86+
"version": "29.2",
87+
"outputs_to_install": [
88+
"out"
89+
],
90+
"outputs": {
91+
"out": "/nix/store/b0lnp9h1i5jv43nw1qyvb8xdyck3x2v2-protobuf-29.2"
92+
},
93+
"system": "aarch64-linux",
94+
"group": "toplevel",
95+
"priority": 5
96+
},
97+
{
98+
"attr_path": "protobuf",
99+
"broken": false,
100+
"derivation": "/nix/store/5gkcqih18jc2bh3qj2rb54jhqghx1lrq-protobuf-29.2.drv",
101+
"description": "Google's data interchange format",
102+
"install_id": "protobuf",
103+
"license": "BSD-3-Clause",
104+
"locked_url": "https://github.com/flox/nixpkgs?rev=799ba5bffed04ced7067a91798353d360788b30d",
105+
"name": "protobuf-29.2",
106+
"pname": "protobuf",
107+
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
108+
"rev_count": 747653,
109+
"rev_date": "2025-02-04T14:46:40Z",
110+
"scrape_date": "2025-02-05T00:30:07Z",
111+
"stabilities": [
112+
"staging",
113+
"unstable"
114+
],
115+
"unfree": false,
116+
"version": "29.2",
117+
"outputs_to_install": [
118+
"out"
119+
],
120+
"outputs": {
121+
"out": "/nix/store/c97xv0vszx2g81d9339ndqf72z3ji6hy-protobuf-29.2"
122+
},
123+
"system": "x86_64-darwin",
124+
"group": "toplevel",
125+
"priority": 5
126+
},
127+
{
128+
"attr_path": "protobuf",
129+
"broken": false,
130+
"derivation": "/nix/store/md04plaig6zkp14gi456drm1wykac3ya-protobuf-29.2.drv",
131+
"description": "Google's data interchange format",
132+
"install_id": "protobuf",
133+
"license": "BSD-3-Clause",
134+
"locked_url": "https://github.com/flox/nixpkgs?rev=799ba5bffed04ced7067a91798353d360788b30d",
135+
"name": "protobuf-29.2",
136+
"pname": "protobuf",
137+
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
138+
"rev_count": 747653,
139+
"rev_date": "2025-02-04T14:46:40Z",
140+
"scrape_date": "2025-02-05T00:30:07Z",
141+
"stabilities": [
142+
"staging",
143+
"unstable"
144+
],
145+
"unfree": false,
146+
"version": "29.2",
147+
"outputs_to_install": [
148+
"out"
149+
],
150+
"outputs": {
151+
"out": "/nix/store/r4k147v919pir4fj74in3axcbma03793-protobuf-29.2"
152+
},
153+
"system": "x86_64-linux",
154+
"group": "toplevel",
155+
"priority": 5
156+
},
33157
{
34158
"attr_path": "python312",
35159
"broken": false,
36-
"derivation": "/nix/store/mdsmprmrjc24d5bf2xg5nsp03qix19fh-python3-3.12.9.drv",
160+
"derivation": "/nix/store/3l02ibvbim50yrmplj2gd6q9k4bnv00h-python3-3.12.8.drv",
37161
"description": "High-level dynamically-typed programming language",
38162
"install_id": "python3",
39163
"license": "Python-2.0",
40-
"locked_url": "https://github.com/flox/nixpkgs?rev=a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
41-
"name": "python3-3.12.9",
164+
"locked_url": "https://github.com/flox/nixpkgs?rev=799ba5bffed04ced7067a91798353d360788b30d",
165+
"name": "python3-3.12.8",
42166
"pname": "python312",
43-
"rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
44-
"rev_count": 770807,
45-
"rev_date": "2025-03-19T22:12:44Z",
46-
"scrape_date": "2025-03-22T01:09:15.046624Z",
167+
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
168+
"rev_count": 747653,
169+
"rev_date": "2025-02-04T14:46:40Z",
170+
"scrape_date": "2025-02-05T00:30:07Z",
47171
"stabilities": [
172+
"staging",
48173
"unstable"
49174
],
50175
"unfree": false,
51-
"version": "python3-3.12.9",
176+
"version": "python3-3.12.8",
52177
"outputs_to_install": [
53178
"out"
54179
],
55180
"outputs": {
56-
"out": "/nix/store/ibnllhp7pc88kgcrxa2gddxcbyl0vngk-python3-3.12.9"
181+
"out": "/nix/store/ffxlyz7jrxxyxg70cn3h961lr91lan2j-python3-3.12.8"
57182
},
58183
"system": "aarch64-darwin",
59184
"group": "toplevel",
@@ -62,28 +187,29 @@
62187
{
63188
"attr_path": "python312",
64189
"broken": false,
65-
"derivation": "/nix/store/47wg9wf5x9lv03w38j45g6jkq7492bz0-python3-3.12.9.drv",
190+
"derivation": "/nix/store/i8fq977q7gr33lnbh4x7pfns2lzlf3vv-python3-3.12.8.drv",
66191
"description": "High-level dynamically-typed programming language",
67192
"install_id": "python3",
68193
"license": "Python-2.0",
69-
"locked_url": "https://github.com/flox/nixpkgs?rev=a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
70-
"name": "python3-3.12.9",
194+
"locked_url": "https://github.com/flox/nixpkgs?rev=799ba5bffed04ced7067a91798353d360788b30d",
195+
"name": "python3-3.12.8",
71196
"pname": "python312",
72-
"rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
73-
"rev_count": 770807,
74-
"rev_date": "2025-03-19T22:12:44Z",
75-
"scrape_date": "2025-03-22T01:26:15.127488Z",
197+
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
198+
"rev_count": 747653,
199+
"rev_date": "2025-02-04T14:46:40Z",
200+
"scrape_date": "2025-02-05T00:30:07Z",
76201
"stabilities": [
202+
"staging",
77203
"unstable"
78204
],
79205
"unfree": false,
80-
"version": "python3-3.12.9",
206+
"version": "python3-3.12.8",
81207
"outputs_to_install": [
82208
"out"
83209
],
84210
"outputs": {
85-
"debug": "/nix/store/61ksnhxna7vrh315zp36swz4563hfip3-python3-3.12.9-debug",
86-
"out": "/nix/store/69nij8d888s5nxm90bwmlza5v1pfniz5-python3-3.12.9"
211+
"debug": "/nix/store/zgss40jlwqkb22z37bi8nb3jwg28sj10-python3-3.12.8-debug",
212+
"out": "/nix/store/p3nlssl5qqib5kysa30mqzzzp364z6fb-python3-3.12.8"
87213
},
88214
"system": "aarch64-linux",
89215
"group": "toplevel",
@@ -92,27 +218,28 @@
92218
{
93219
"attr_path": "python312",
94220
"broken": false,
95-
"derivation": "/nix/store/m216wld0xa07pb3kwhm5qf2vcxwcd8kp-python3-3.12.9.drv",
221+
"derivation": "/nix/store/mxwwxflkwcaj30048cgk3i853fhbbrji-python3-3.12.8.drv",
96222
"description": "High-level dynamically-typed programming language",
97223
"install_id": "python3",
98224
"license": "Python-2.0",
99-
"locked_url": "https://github.com/flox/nixpkgs?rev=a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
100-
"name": "python3-3.12.9",
225+
"locked_url": "https://github.com/flox/nixpkgs?rev=799ba5bffed04ced7067a91798353d360788b30d",
226+
"name": "python3-3.12.8",
101227
"pname": "python312",
102-
"rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
103-
"rev_count": 770807,
104-
"rev_date": "2025-03-19T22:12:44Z",
105-
"scrape_date": "2025-03-22T01:41:19.501074Z",
228+
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
229+
"rev_count": 747653,
230+
"rev_date": "2025-02-04T14:46:40Z",
231+
"scrape_date": "2025-02-05T00:30:07Z",
106232
"stabilities": [
233+
"staging",
107234
"unstable"
108235
],
109236
"unfree": false,
110-
"version": "python3-3.12.9",
237+
"version": "python3-3.12.8",
111238
"outputs_to_install": [
112239
"out"
113240
],
114241
"outputs": {
115-
"out": "/nix/store/2gr2skg3m0hagibhmhn8fwpvgkg2a3sn-python3-3.12.9"
242+
"out": "/nix/store/45g1q2ama4j033d5qi2lgfzy1xmagnmf-python3-3.12.8"
116243
},
117244
"system": "x86_64-darwin",
118245
"group": "toplevel",
@@ -121,28 +248,29 @@
121248
{
122249
"attr_path": "python312",
123250
"broken": false,
124-
"derivation": "/nix/store/7migdv1gw3nv4dl921mk8algfllzricw-python3-3.12.9.drv",
251+
"derivation": "/nix/store/vayn2kdmslggnm005zxr7r67hfbzi4jh-python3-3.12.8.drv",
125252
"description": "High-level dynamically-typed programming language",
126253
"install_id": "python3",
127254
"license": "Python-2.0",
128-
"locked_url": "https://github.com/flox/nixpkgs?rev=a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
129-
"name": "python3-3.12.9",
255+
"locked_url": "https://github.com/flox/nixpkgs?rev=799ba5bffed04ced7067a91798353d360788b30d",
256+
"name": "python3-3.12.8",
130257
"pname": "python312",
131-
"rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
132-
"rev_count": 770807,
133-
"rev_date": "2025-03-19T22:12:44Z",
134-
"scrape_date": "2025-03-22T01:59:34.881820Z",
258+
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
259+
"rev_count": 747653,
260+
"rev_date": "2025-02-04T14:46:40Z",
261+
"scrape_date": "2025-02-05T00:30:07Z",
135262
"stabilities": [
263+
"staging",
136264
"unstable"
137265
],
138266
"unfree": false,
139-
"version": "python3-3.12.9",
267+
"version": "python3-3.12.8",
140268
"outputs_to_install": [
141269
"out"
142270
],
143271
"outputs": {
144-
"debug": "/nix/store/lax69b07pjgj4ahn4zild8vfqdavy9zm-python3-3.12.9-debug",
145-
"out": "/nix/store/wz0j2zi02rvnjiz37nn28h3gfdq61svz-python3-3.12.9"
272+
"debug": "/nix/store/yg7pavnh3hhw0lwfm9c4jr9yi3rq8h4r-python3-3.12.8-debug",
273+
"out": "/nix/store/qrc496n6fsqp4p5m5h8wmw5d5jwyw5mr-python3-3.12.8"
146274
},
147275
"system": "x86_64-linux",
148276
"group": "toplevel",

.flox/env/manifest.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ version = 1
2222
# see https://github.com/enola-dev/enola/pull/1227.
2323
python3 = { pkg-path = "python312" }
2424

25+
# Protoc is used (only) by tools/protoc/protoc.bash
26+
# to generate *.schema.json from *.proto; the Bazel
27+
# rules_proto (downloads and builds) its own protoc.
28+
protobuf.pkg-path = "protobuf"
29+
protobuf.version = "29.2"
30+
2531
## Environment Variables ---------------------------------------------
2632
## ... available for use in the activated environment
2733
## as well as [hook], [profile] scripts and [services] below.

.tool-versions

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
# asdf install protoc latest
1111
# asdf local protoc latest
1212

13-
# Protoc is used (only) by tools/protoc/protoc.bash
14-
# to generate *.schema.json from *.proto; the Bazel
15-
# rules_proto (downloads and builds) its own protoc.
16-
protoc 29.2
17-
1813
# TODO protolint here instead of installing it in test.bash
1914
# when https://github.com/spencergilbert/asdf-protolint/issues/37 is fixed
2015

0 commit comments

Comments
 (0)