1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
|
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="Docutils 0.22.4: https://docutils.sourceforge.io/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="nixtamal, faqs, frequently asked questions, information" name="keywords">
<meta content="Answers some of your questions about Nixtamal" name="description">
<meta content="toastal" name="author">
<meta content="" name="robots">
<title>
Frequently asked questions | Nixtamal
</title>
<meta name="generator" content="soupault">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="X-XSS-Protection" content="1;mode=block">
<meta http-equiv="X-Content-Type-Options" content="nosniff">
<meta http-equiv="Content-Security-Policy" content="default-src 'self';">
<meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin">
<meta name="theme" content="crimson">
<link rel="icon" type="image/svg+xml" href="/asset/_hashed/nixtamal/image/nixtamal-logo-gmxzsw8388sf9paq05xws7an4hnl4nx0.svg">
<link rel="stylesheet" href="/asset/_hashed/nixtamal/style/font-j47xx20z5d89qpsl95nnbipkg6d25m6y.css">
<link rel="stylesheet" href="/asset/_hashed/sugilite256/chroma-light-yfrfnk1zyqm9dc67gaa5y67s0a6x40ji.css">
<link rel="stylesheet" href="/asset/_hashed/sugilite256/chroma-dark-s4ssx3zwz2w418zx7pkrqlwqmywgvahl.css" media="(prefers-color-scheme: dark)">
<link rel="stylesheet" href="/asset/_hashed/nixtamal/style/main-lmdn1rci18371fnrcqrwga636ip08irz.css">
<link rel="author" href="/humans.txt">
</head>
<body>
<div id="DocWrapper" class="DocWrapper">
<div class="Banner-wrapper">
<header id="Banner" class="Banner">
<pre role="none" class="Banner-flair">âââ»+â» â±ââ³âââââ³ââââ»
ââââââââ¹ââ¹â£â«ââââ£â«â
â¹âââ¹â± â¹ â¹ â¹â¹â¹ â¹â¹â¹ââ</pre>
<a href="/" class="SiteLogo" title="Home">
<svg viewbox="0 0 79.375 27.099415" class="SiteLogo-image" role="img" aria-labelledby="SiteLogo-desc">
<use href="/asset/_hashed/nixtamal/image/nixtamal-logo-gmxzsw8388sf9paq05xws7an4hnl4nx0.svg#logo">
<desc id="SiteLogo-desc">
Home
</desc>
</use>
</svg>
</a>
<nav id="Navigation" class="Banner-navigation Navigation Navigation--banner" aria-expanded="true">
<a class="Navigation-item" href="/install/">Install</a>
<a class="Navigation-item" href="/manpage/">Manpage</a>
<a class="Navigation-item" href="/changelog/">Changelog</a>
<a class="Navigation-item" href="/roadmap/">Roadmap</a>
<a class="Navigation-item" href="/cookbook/">Cookbook</a>
<a class="Navigation-item" href="/real-world-showcase/">Real-world showcase</a>
<a class="Navigation-item" href="/community/">Community</a>
<a class="Navigation-item" href="/faqs/"><abbr title="frequently asked questions">FAQs</abbr></a>
<a class="Navigation-item" href="/funding/">Funding</a>
</nav>
</header>
<hr class="Banner-separator">
</div>
<main id="Main" class="Main">
<article id="Article" class="Article Stack">
<header class="Headline Article-headline">
<h1 itemprop="headline" class="title">
Frequently asked questions
</h1>
</header>
<section itemprop="articleBody" id="Content" class="Content Article-body">
<div class="details">
<details>
<summary>
How to pronounce âNixtamalâ?
</summary>
<p>
<strong>/nɪÊ.tÉËmal/</strong> <em>or</em> <strong>/ËnɪkstÉËmÉËl/</strong>
</p>
<p>
The Nahuatl pronunciation is a bit better, but no qualms with an anglicized pronunciationâââas folks are probably used to Nix as /Ënɪks/.
</p>
<p>
Additionally, ·ð¯ð¦ððð©ð¥ðð¤ is a valid spelling for <code>en-Shaw</code>.
</p>
</details>
<details>
<summary>
What does the name mean?
</summary>
<figure class="Quoteblock">
<blockquote>
<p>
: limed kernels of [maize] that is ready to be ground into masa
</p>
</blockquote>
<figcaption>
ââMerriam-Webster, <cite><a class="reference external" href="https://www.merriam-webster.com/dictionary/nixtamal">nixtamal</a></cite>
</figcaption>
</figure>
<p>
This loosens the maizeâs outer hull, so it grinds easier & feeds you betterâââmaking it key to Mesoamerican food & health.
</p>
</details>
<details>
<summary>
What is âfreshnessâ?
</summary>
<p>
The dual to <em>fresh</em> is <em>stale</em>. Is your input <em>stale</em>? Letâs check the <code>fresh-cmd</code> to find out!
</p>
<p>
The word âlatestâ wasnât quite appropriate since itâs up the user to decide what <em>fresh</em> means for their contextâââwhich often isnât âlatestâ.
The idea is: so long as it can be executed in your shell & returns a string that can be compared against, you can write honestly whatever you want.
This also pairs well with the command named <code>nixtamal refresh</code> (same as <code>pkcon refresh</code>) which runs the <code>fresh-cmd</code> which can short-circuit trying to prefetch your input to prevent wasteful network usage to download inputs or getting versions you donât want (itâs your logic).
</p>
</details>
<details>
<summary>
Can I get <code>$X</code> fetcher supported? How to add a fetcher?
</summary>
<p>
We donât believe it is in this projectâs or the Commonsâ interest to carve out special support for any fetchers (patches had to do this for <code>fetchpatch2</code>, but this was to enable a broader feature).
What you should do is submit a patchset to upstream Nixpkgs with your fetcherâââideally with <abbr title="JavaScript Object Notation">JSON</abbr> support like the others along with being added to <code>pkgs.nix-prefetch-scripts</code>.
This enables <em>Nix community</em> to have access to your prefetcher, not just Nixtamal which would be selfishly hoarding that capability.
Once it is merged, ping me & we can write or help you write the code needed.
</p>
</details>
<details>
<summary>
Isnât Nixpkgs big/overkill to do pinning?
</summary>
<p>
Big, yes.
Overkill⦠itâs not as simple.
In order to get access to the fetchers, one would need to bootstrap their setup & build their own <code>derivation</code>.
This includes at minimum a C compiler & some form of <code>coreutils</code>⦠except you need more than this.
For instance if you want to use <code>pkgs.fetchdarcs</code> or even create your own, you need a Darcs binary, which requires the Haskell tooling (or all static binaries built for specific platforms).
When you take a look at how that would be set up, you would effectively be reimplementing Nixpkgs.
As such, the simpler answer is to say Nixpkgs is effectively <em>required</em>.
We can giggle about the size of that dependency, but the reality is 98% of projects using Nix are going to be using Nixpkgs anyhow.
Nixtamal does offer configuration when <code>import</code>ing it which can be used to provide a minimal package set if needed.
Wishful thoughts would be that if Nixpkgs werenât so monolithic, core features like compilers & fetchers could be separate from general packaging, but where these lines get drawn are neither clear nor simple.
</p>
</details>
<details>
<summary>
Why OCaml as the main programming language?
</summary>
<p>
Nix the programming language falls in the <a class="reference external" href="https://en.wikipedia.org/wiki/ML_(programming_language)">ML</a> family & share a lot of syntax & conventions with other functional languages in the family.
This makes the code more approachable to those familiar with Nix rather than needing to learn a very different language like Npins (Rust) or Yae (Go).
The compile times are fast & the ecosystem is sufficient.
</p>
</details>
<details>
<summary>
Why <a class="reference external" href="https://kdl.dev"><abbr title="KDL Document language">KDL</abbr></a> for the manifest language?
</summary>
<p>
<abbr title="KDL Document language">KDL</abbr> has a syntax that isnât a burden to use a configuration languageâââwhich helps explain why is very popular for its age.
<abbr title="JavaScript Object Notation">JSON</abbr> has no comments, one must watch commas, & is verbose with quotations.
<abbr title="Tomâs Obvious, Minimal Language">TOML</abbr> doesnât nest well.
<abbr title="Yet Another Markup Language">YAML</abbr> is overly complex.
Nickel is great, but needs to be transformed into one of these others.
<abbr title="Extensible Data Notation">EDN</abbr> was considered, but <abbr title="KDL Document language">KDL</abbr> felt better to writeâââespecially the <code>fresh-cmd</code> syntax using <code>$</code> & <code>|</code> as node names.
<abbr title="KDL Document language">KDL</abbr> has a schema language & a best-attempt schema.kdl should be shipped as well for future <abbr title="KDL Document language">KDL</abbr> tooling or <abbr title="large language model">LLM</abbr> assistance.
</p>
</details>
<details>
<summary>
Why even have a manifest file at all?
</summary>
<p>
Have you ever needed to switch branches on an input to something stable or next to get code working?
The reality is your inputs evolve over time.
If you have ever used <code>flake.nix</code>âs <code>inputs</code> you probably had a good experience of say changing a Git inputâs <code>?ref=â¦</code> to point to a different branch/revision.
These <abbr title="command-line interface">CLI</abbr>-only options donât make this a nice experienceâyou either need to know the input key name to upsert it at the new reference point or you had to go spelunking in the lockfile (meaning you needed to be wary of <abbr title="JavaScript Object Notation">JSON</abbr> rules, but also wasnât the lockfile supposed to be machine-generated⦠& why do these lockfiles have data unrelated to locking?).
The reality is that <em>betting on text</em> has been a long-standing practice for a reason.
In the long run, a manifest file makes changing reference points, adding patches, changing hash algorithms easierâas well as being easier for humans (& prehaps <abbr title="large language model">LLM</abbr>s) to understand.
</p>
</details>
<details>
<summary>
Why not <abbr title="KDL Document language">KDL</abbr> for the lockfile?
</summary>
<p>
Nix does does not have a <code>builtins.fromKDL</code> (tho there has been <a title="Beware: this hyperlink will take you to GitHub, a proprietary code forge owned by a US-based, publicly-traded megacorporation, Microsoft which is using your data to train AIs & then sell it back to you" class="bad-proprietary reference external" href="https://github.com/NixOS/nixpkgs/pull/426828">some rumblings for formats.kdl in Nixpkgs</a>).
As such your options are <code>builtins.fromJSON</code> or <code>builtins.fromTOML</code> & the Rust communityâs obsession with <abbr title="Tomâs Obvious, Minimal Language">TOML</abbr> & that <abbr title="Tomâs Obvious, Minimal Language">TOML</abbr> needs to integrate <abbr title="JavaScript Object Notation">JSON</abbr> syntax anyway (just like <abbr title="Yet Another Markup Language">YAML</abbr>), it tips the scales in <abbr title="JavaScript Object Notation">JSON</abbr>âs favor.
</p>
</details>
<details>
<summary>
Why is the project using <a class="reference external" href="https://darcs.net"><abbr title="Darcs Advanced Revision Control System">Darcs</abbr></a> & not Git?
</summary>
<p>
<a class="reference external" href="https://darcs.net/Theory">Patch Theory</a> is cool where patches commute (order doesnât matter) which eliminates an entire set of merge conflicts present in snapshot-based <abbr title="version control system">VCS</abbr>s.
Pijul has the same theory behind it, is faster, & the new identity concept is what should have been (instead of name + email burned in the commits), but still lacks tooling.
By using <abbr title="Darcs Advanced Revision Control System">Darcs</abbr>, we can also <a class="reference external" href="https://en.wikipedia.org/wiki/Eating_your_own_dog_food">dogfood</a> support for Nixtamal.
Git uses an arcane, obtuse <abbr title="command-line interface">CLI</abbr> commands that everyone knows is overly complicated & inconsistent, so why not try something fundamentally different?
</p>
<p>
However, <em>do not</em> be surprised if this project moves to Pijul if the tooling gets better since Darcs has been tested well enough, which would mean it would be Pijulâs turn next!
<abbr title="Darcs Advanced Revision Control System">Darcs</abbr> is still worked on albeit it slower, but it also has some warts time has left on it.
If there is a simple, self-hostable <abbr title="Hypertext Transfer Protocol">HTTP</abbr> option for the server & a better story for rebase, <a itemprop="url" href="https://toast.al"><span itemtype="https://schema.org/Person" itemscope="" class="peer"><span itemprop="name">toastal</span></span></a> could switch.
</p>
</details>
<details>
<summary>
Will the project make a Git mirror?
</summary>
<p>
No.
This defeats the purpose of dogfooding actual alternative <abbr title="version control system">VCS</abbr>s.
If you see a Git mirror, itâs 100% unofficialâââif not illegitimate.
</p>
</details>
<details>
<summary>
What is wrong with with forge-specific <abbr title="uniform resource locator">URL</abbr> schemes or semantics?
</summary>
<p>
Trends shiftâââwhatâs beloved now likely wonât be tomorrow.
Rather than a minor convenience for what is popular now, a better design is to not give any place special privilege.
This special privilege can make folks feel peer pressured into using the current trend platform (<em>especially</em> <a class="reference external" href="https://mako.cc/writing/hill-free_tools.html">proprietary code forges for free software</a>).
We donât want to foster this behaviorâââno, we want to see more self-hosting
|