Robert Hensing
bdb6f56c90
Merge pull request #9295 from NixOS/store-path-complete-construction
...
Include store path exact spec in the docs
2024-02-12 19:02:03 +01:00
John Ericson
f29d2a9d11
Small EBNF fix
2024-02-12 12:30:28 -05:00
John Ericson
898fd1e48d
Update doc/manual/src/protocols/store-path.md
2024-02-12 12:04:37 -05:00
John Ericson
5169f5f4d9
Apply suggestions from code review
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-02-12 12:01:54 -05:00
John Ericson
c873a140d7
Apply suggestions from code review
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-02-12 11:34:54 -05:00
John Ericson
4c3e4d6d71
Sections, EBNF tweaks
2024-02-12 11:33:06 -05:00
John Ericson
0862d7ce57
Move around non-terminals
2024-02-12 11:26:08 -05:00
John Ericson
eb76b35efa
Merge remote-tracking branch 'upstream/master' into store-path-complete-construction
2024-02-12 11:22:54 -05:00
John Ericson
30f6b0f9c5
pre
-> fingerprint
in store path grammar
...
As suggested by @roberth in
https://github.com/NixOS/nix/pull/9295#discussion_r1486402040 .
Thanks!
2024-02-12 11:22:08 -05:00
John Ericson
95190e68ed
Mention the use of Extended Backus–Naur form
2024-02-12 11:21:54 -05:00
John Ericson
ac1301ddfd
Convert store path "grammar" to EBNF
2024-02-12 11:16:53 -05:00
John Ericson
91557df4a7
Apply suggestions from code review
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-02-12 11:16:12 -05:00
Eelco Dolstra
c4ebb82da4
Merge pull request #9992 from edolstra/fix-warning
...
Fix "may be used uninitialized" warning
2024-02-12 16:02:21 +01:00
Eelco Dolstra
619ca631d0
Fix "may be used uninitialized" warning
2024-02-12 15:29:48 +01:00
Eelco Dolstra
d3c1997127
Merge pull request #9976 from alois31/restore-manual-pages
...
Restore manual pages
2024-02-12 15:21:47 +01:00
Théophane Hufschmitt
e352c66161
Merge pull request #9983 from BOHverkill/fix-string-interpolation-link
...
Fix link to derivation in string interpolation doc
2024-02-12 14:26:03 +01:00
Eelco Dolstra
ec6ca6e42c
Merge pull request #9948 from obsidiansystems/no-canon-path-from-cwd
...
Get rid of `CanonPath::fromCwd`
2024-02-12 14:04:01 +01:00
John Ericson
9d182e71fb
Merge pull request #9984 from BOHverkill/fix-manual-link
...
Fix link to manual in CONTRIBUTING.md
2024-02-11 16:13:06 -05:00
BOHverkill
fae8c15737
Fix link to manual in CONTRIBUTING.md
2024-02-10 17:44:33 +01:00
BOHverkill
53eecae525
Fix link to derivation in string interpolation doc
...
The reference link definition for it pointing to the glossary was
removed, so it is currently not displayed as a link.
2024-02-10 17:27:16 +01:00
Alois Wohlschlager
8f3253c6f4
Restore manual pages
...
Commit d536c57e87
inadvertedly broke build and
installation of all non-autogenerated manual pages (in particular, all the ones
documenting the stable CLI), by moving the definition of the man-pages variable
in doc/manual/local.mk after its usage in mk/lib.mk. Move including the former
earlier so that the correct order is restored.
2024-02-09 19:07:59 +01:00
Théophane Hufschmitt
28a988bdde
Merge pull request #9974 from edolstra/less-chatty-post-build-hook
...
runPostBuildHook(): Be less chatty
2024-02-09 16:39:02 +01:00
Eelco Dolstra
fb5a792280
runPostBuildHook(): Be less chatty
...
Don't spam the user with "running post-build-hook" messages. It's up
to the post-build hook if it has something interesting to say.
2024-02-09 15:55:24 +01:00
Eelco Dolstra
4487ebca66
Merge pull request #9973 from fricklerhandwerk/add-links-gc-confusion
...
add clickable anchor links
2024-02-09 13:41:18 +01:00
Eelco Dolstra
57ebcadb2f
Merge pull request #9972 from NixOS/allow-unoptimized-builds
...
Don't hardcode the `-O2` compiler flag
2024-02-09 13:25:51 +01:00
Valentin Gagarin
60045f9c96
add clickable anchor links
...
how the different invocations relate to each other seems be
confusing, which is relatable because one has to wire it up in your head
while reading. an explicit reference should make it unambiguous and
easier to notice due to links being highlighted.
2024-02-09 10:41:03 +01:00
Théophane Hufschmitt
1fe7b01669
Don't hardcode the -O2
compiler flag
...
autoconf authors apparently decided that setting `-O2` by default was a good idea. I disagree, and Nix has its own way of deciding that (with `OPTIMIZE={0,1}`). Explicitly set `CFLAGS` and `CXXFLAGS` in the configure script to disable that behaviour.
Fix #9965
2024-02-09 06:27:24 +01:00
Théophane Hufschmitt
47a1dbb4b8
Merge pull request #9925 from 9999years/fmt-cleanup
...
Cleanup `fmt.hh`
2024-02-09 06:01:03 +01:00
Rebecca Turner
953eb0cba2
Fix tests
2024-02-08 15:55:20 -08:00
Rebecca Turner
c0e7f50c1a
Rename hintfmt
to HintFmt
2024-02-08 11:58:25 -08:00
Rebecca Turner
149bd63afb
Cleanup fmt.hh
...
When I started contributing to Nix, I found the mix of definitions and
names in `fmt.hh` to be rather confusing, especially the small
difference between `hintfmt` and `hintformat`. I've renamed many classes
and added documentation to most definitions.
- `formatHelper` is no longer exported.
- `fmt`'s documentation is now with `fmt` rather than (misleadingly)
above `formatHelper`.
- `yellowtxt` is renamed to `Magenta`.
`yellowtxt` wraps its value with `ANSI_WARNING`, but `ANSI_WARNING`
has been equal to `ANSI_MAGENTA` for a long time. Now the name is
updated.
- `normaltxt` is renamed to `Uncolored`.
- `hintfmt` has been merged into `hintformat` as extra constructor
functions.
- `hintformat` has been renamed to `hintfmt`.
- The single-argument `hintformat(std::string)` constructor has been
renamed to a static member `hintformat::interpolate` to avoid pitfalls
with using user-generated strings as format strings.
2024-02-08 11:51:03 -08:00
Théophane Hufschmitt
1ba9780cf5
Merge pull request #9834 from 9999years/structured-errors
...
Towards structured error classes
2024-02-08 20:00:25 +01:00
John Ericson
4687beecef
Get rid of CanonPath::fromCwd
...
As discussed in the last Nix team meeting (2024-02-95), this method
doesn't belong because `CanonPath` is a virtual/ideal absolute path
format, not used in file systems beyond the native OS format for which a
"current working directory" is defined.
Progress towards #9205
2024-02-08 11:01:41 -05:00
Eelco Dolstra
6563a58294
Merge pull request #9964 from fricklerhandwerk/merge-format-sections
...
move JSON section into Formats and Protocols
2024-02-08 16:53:59 +01:00
Théophane Hufschmitt
a8050d9b83
Merge pull request #9928 from 9999years/error-messages-in-nix-repl
...
Improve error printing in `nix repl`
2024-02-08 16:21:13 +01:00
Théophane Hufschmitt
96686a2a29
Merge pull request #9963 from fricklerhandwerk/fold-sidebar
...
manual: fold sidebar sections
2024-02-08 16:18:27 +01:00
John Ericson
f2f54cf087
Merge pull request #9863 from obsidiansystems/perl-open-other-store
...
Support arbitrary stores in Perl bindings
2024-02-08 09:30:18 -05:00
Théophane Hufschmitt
46a0625a40
Merge pull request #9929 from 9999years/dont-print-values-in-magenta
...
Don't print the first bracket in values in magenta in error messages
2024-02-08 10:56:18 +01:00
Théophane Hufschmitt
9b8b486091
Merge pull request #9933 from pennae/debugger-fix
...
fix debugger crashing while printing envs
2024-02-08 10:48:02 +01:00
Théophane Hufschmitt
acef4f17a2
Merge pull request #9918 from 9999years/debugger-locals-for-let-expressions
...
Expose locals from `let` expressions to the debugger
2024-02-08 10:17:55 +01:00
Théophane Hufschmitt
c4ed92fa6f
Merge pull request #9917 from 9999years/enter-debugger-more-reliably
...
Enter debugger more reliably in `let` expressions and function calls
2024-02-08 10:09:54 +01:00
Théophane Hufschmitt
fb78a99e04
Merge pull request #9924 from 9999years/rename-yellowtxt
...
Rename `yellowtxt` -> `magentatxt`
2024-02-08 10:01:30 +01:00
Théophane Hufschmitt
f388a6148d
Merge pull request #9919 from 9999years/reduce-debugger-clutter
...
Reduce visual clutter in the debugger
2024-02-08 09:42:38 +01:00
Théophane Hufschmitt
d24c8aa491
Simplify a conditional in the repl initialisation
2024-02-08 09:22:30 +01:00
Valentin Gagarin
e486b76eef
move JSON section into Formats and Protocols
2024-02-08 09:13:58 +01:00
Valentin Gagarin
140de3b278
manual: fold sidebar sections
...
the table of contents is very long now, and folded sections allow
for a better overview.
2024-02-08 09:00:00 +01:00
John Ericson
bc08502249
Support arbitrary stores in Perl bindings
...
Fix #9859
It's a breaking change but that's fine; we can just update Hydra to use
the new bindings.
2024-02-07 22:31:58 -05:00
Eelco Dolstra
09a6e8e703
Merge pull request #9949 from fricklerhandwerk/fix-redirects-file
...
fix location of `_redirects` file
2024-02-07 11:34:35 +01:00
Rebecca Turner
9723f533d8
Add comment
2024-02-06 16:50:47 -08:00
Rebecca Turner
474fc4078a
Add comments
2024-02-06 16:49:28 -08:00