Commit Graph

59841 Commits

Author SHA1 Message Date
pennae
bb6526e0de nixos-render-docs: add generic attributed-block parsing
this is a subset of pandoc's fenced divs. currently we only use this for
admonitions (which get a new name to differentiate them from other kinds
of blocks), but more users will appear soon.
2023-02-10 06:40:02 +01:00
pennae
36b0f53f85 nixos-render-docs: promote compact-list attrs to core rule
rules are a better place for this. since _post_parse is now empty (and
presumably will never grow) we'll remove that as well.
2023-02-10 06:40:02 +01:00
pennae
6cd368870b nixos-render-docs: allow dots in heading ids
this is used by release notes (and we don't want to break links to
those), and is also technically allowed anyway. we will *not* extend the
regex to allow more characters just yet due to a mozilla recommendation
against it (cf https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)
2023-02-10 06:40:02 +01:00
pennae
fd9f6c7501 nixos-render-docs: promote heading id extraction to a core rule
this should've been a core rule from the beginning. not being a core
rule made it always run after smartquotes and replacements, which
could've wrecked the id.
2023-02-10 06:40:02 +01:00
pennae
4b06b82130 nixos-render-docs: add the .keycap class
this lets us parse the `[F12]{.keycap}` syntax we recently introduced to
the nixos manual markdown sources. the docbook renderer emits the keycap
element for this class, the manpage renderer will reject it because it's
not entirely clear what to do with it: while html has <kbd> mandoc has
nothing of the sort, and with no current occurences in options doc we
don't have to settle on a (potentially bad) way to render these.
2023-02-10 06:40:01 +01:00
pennae
67086639e0 nixos-render-docs: add support for full attributed spans
this is pretty much what pandoc calls bracketed spans. since we only
want to support ids and classes it doesn't seem fair to copy the name,
so we'll call them "attributed span" for now. renderers are expected to
know about *all* classes they could encounter and act appropriately, and
since there are currently no classes with any defined behavior the most
appropriate thing to do for now is to reject all classes.
2023-02-10 06:40:01 +01:00
Nick Cao
8515e2d44f
Merge pull request #215602 from figsoda/codevis
codevis: init at 0.5.1
2023-02-10 12:37:16 +08:00
Uri Baghin
a03c9add95
Merge pull request #215622 from r-ryantm/auto-update/opentelemetry-collector
opentelemetry-collector: 0.70.0 -> 0.71.0
2023-02-10 15:05:21 +11:00
figsoda
5dffbc4dd9 pkgtop: init at 2.4.1 2023-02-09 22:49:25 -05:00
figsoda
d533515588 muffet: init at 2.7.0 2023-02-09 22:18:02 -05:00
Mario Rodas
7317c03fb1
Merge pull request #215594 from r-ryantm/auto-update/chezmoi
chezmoi: 2.29.4 -> 2.30.0
2023-02-09 22:06:50 -05:00
R. Ryantm
d360df1caa opentelemetry-collector: 0.70.0 -> 0.71.0 2023-02-10 03:03:06 +00:00
figsoda
cd85cbf7e3 lipl: init at 0.1.3 2023-02-09 22:02:56 -05:00
Nick Cao
1fce3a7561
Merge pull request #215524 from r-ryantm/auto-update/v2ray
v2ray: 5.2.1 -> 5.3.0
2023-02-10 09:18:17 +08:00
figsoda
44ffdc99f3 codevis: init at 0.5.1 2023-02-09 20:10:35 -05:00
Nick Cao
ccf30f06a8
Merge pull request #215490 from fabaff/msgspec-bump
python310Packages.msgspec: 0.12.0 -> 0.13.0
2023-02-10 09:09:58 +08:00
Nick Cao
f589cd9a32
Merge pull request #215422 from NickCao/stratis
stratisd: 3.5.0 -> 3.5.1
2023-02-10 09:08:04 +08:00
figsoda
469a7b7389 zps: init at 1.2.8 2023-02-09 18:39:47 -05:00
R. Ryantm
8e7775d708 chezmoi: 2.29.4 -> 2.30.0 2023-02-09 23:31:16 +00:00
Wout Mertens
3c6e6c6433
Merge pull request #214337 from hauleth/ft/update-netdata-go.d.plugin-to-0.50.0
netdata-go.d.plugin: from 0.32.3 to 0.50.0
2023-02-09 23:11:47 +01:00
figsoda
15038f976f
Merge pull request #215573 from phile314/cloudinit-rm-maintainer-phile314
cloud-init: remove phile314 as maintainer
2023-02-09 17:01:00 -05:00
Thomas Gerbet
38f0b51a3e upx: 3.96 -> 4.0.2
https://github.com/upx/upx/blob/v4.0.2/NEWS
2023-02-09 22:44:10 +01:00
Philipp Hausmann
8f972f694f cloud-init: remove phile314 as maintainer 2023-02-09 22:16:44 +01:00
Thomas Gerbet
ce9286c6b6
Merge pull request #215540 from dotlambda/libpgf-7.21.7
libpgf: 7.21.2 -> 7.21.7
2023-02-09 22:06:04 +01:00
R. Ryantm
c257eba8e2 mawk: 1.3.4-20200120 -> 1.3.4-20230203 2023-02-09 12:56:50 -06:00
Aaron Bieber
e2a7510f3d rex: install shell completions 2023-02-09 19:12:21 +01:00
R. Ryantm
a8f2090bc8 epubcheck: 4.2.6 -> 5.0.0 2023-02-09 19:07:44 +01:00
figsoda
bcf5eb3363
Merge pull request #215532 from r-ryantm/auto-update/nb
nb: 7.3.0 -> 7.4.1
2023-02-09 12:52:56 -05:00
Robert Schütz
ac17c2b4b3 pgf_graphics: 6.14.12 -> 7.21.7 2023-02-09 09:17:26 -08:00
R. Ryantm
48deb11169 buttercup-desktop: 2.17.0 -> 2.18.2 2023-02-09 16:24:41 +00:00
R. Ryantm
c4e96134db nb: 7.3.0 -> 7.4.1 2023-02-09 16:17:04 +00:00
R. Ryantm
9693b491de v2ray: 5.2.1 -> 5.3.0 2023-02-09 15:54:21 +00:00
Fabian Affolter
d80fdedd72 ffuf: add changelog to meta 2023-02-09 15:42:54 +01:00
pennae
44649a53e9 nix: force make to use old-style two-pipe-fds jobserver
gcc lto-wrapper uses the make jobserver to speed up linking, and it
doesn't support the new fifo:/path style of jobserver-auth yet. it'll
still work but use only one thread, so we should stick to the old style
for now.
2023-02-09 14:51:24 +01:00
Sandro
bc7b556312
Merge pull request #207988 from MatthewCroughan/mc/repro-get
repro-get: init at 0.2.1
2023-02-09 14:49:25 +01:00
Weijia Wang
f8afa3318c
Merge pull request #215470 from r-ryantm/auto-update/drill
drill: 0.8.1 -> 0.8.2
2023-02-09 14:27:30 +01:00
Weijia Wang
b526fbbb62
Merge pull request #215449 from r-ryantm/auto-update/htop
htop: 3.2.1 -> 3.2.2
2023-02-09 14:25:42 +01:00
Weijia Wang
2a122412ac
Merge pull request #215466 from r-ryantm/auto-update/xrootd
xrootd: 5.5.1 -> 5.5.2
2023-02-09 14:24:37 +01:00
Weijia Wang
2231b67f2c
Merge pull request #215477 from r-ryantm/auto-update/mdbook-katex
mdbook-katex: 0.3.4 -> 0.3.7
2023-02-09 14:17:31 +01:00
Weijia Wang
43a25f3e7d
Merge pull request #215471 from r-ryantm/auto-update/tinyfecvpn
tinyfecvpn: 20210116.0 -> 20230206.0
2023-02-09 14:11:56 +01:00
Weijia Wang
7e287bf0de
Merge pull request #215478 from r-ryantm/auto-update/broot
broot: 1.20.0 -> 1.20.1
2023-02-09 14:08:13 +01:00
Nick Cao
f6634dd372
Merge pull request #215483 from r-ryantm/auto-update/reuse
reuse: 1.1.0 -> 1.1.1
2023-02-09 20:32:55 +08:00
Fabian Affolter
bdf3a9e1cf gallia: relax msgspec constraint 2023-02-09 12:55:51 +01:00
Fabian Affolter
474be6bb29 gallia: add changelog to meta 2023-02-09 12:53:46 +01:00
R. Ryantm
c9ae110cf4 reuse: 1.1.0 -> 1.1.1 2023-02-09 09:55:56 +00:00
R. Ryantm
b3983468c3 broot: 1.20.0 -> 1.20.1 2023-02-09 09:46:14 +00:00
R. Ryantm
6da6a1899b mdbook-katex: 0.3.4 -> 0.3.7 2023-02-09 09:31:29 +00:00
R. Ryantm
679e64a561 tinyfecvpn: 20210116.0 -> 20230206.0 2023-02-09 09:05:12 +00:00
R. Ryantm
997b955af1 drill: 0.8.1 -> 0.8.2 2023-02-09 09:04:26 +00:00
Weijia Wang
deba294d72
Merge pull request #215446 from r-ryantm/auto-update/afterburn
afterburn: 5.3.0 -> 5.4.0
2023-02-09 09:18:43 +01:00
Weijia Wang
697c78634c
Merge pull request #215456 from wegank/afterburn-linux
afterburn: relax platforms
2023-02-09 09:13:37 +01:00
R. Ryantm
246a192a2d xrootd: 5.5.1 -> 5.5.2 2023-02-09 08:10:35 +00:00
Nick Cao
6fa2bfdf4d
Merge pull request #215110 from gador/pgadmin-use-pstgresqltesthook
pgadmin4-desktopmode: init at 6.19, pgadmin4: simplify tests
2023-02-09 16:05:44 +08:00
Weijia Wang
e004f773e7 afterburn: relax platforms 2023-02-09 08:41:01 +01:00
Florian Brandes
a380674d85
pgadmin4: add option to enable desktop mode
By default, pgadmin4 uses SERVER_MODE = True. This requires
access to system directories (e.g. /var/lib/pgadmin). There is
no easy way to change this mode during runtime. One has to change
or add config files withing pgadmin's directory structure to change it
or add a system-wide config file under `/etc/pgadmin`[1].

This isn't always easy to achive or may not be possible at all. For
those usecases this implements a switch in the pgadmin4 derivation and
adds a new top-level package `pgadmin4-desktopmode`. This builds in
DESKTOP MODE and allows the usage of pgadmin4 without the nixOS module
and without access to system-wide directories.

pgadmin4 module saves the configuration to /etc/pgadmin/config_system.py
pgadmin4-desktopmode tries to read that as well. This normally fails with
a PermissionError, as the config file is owned by the user of the pgadmin module.

With the check-system-config-dir.patch this will just throw a warning
but will continue and not read the file.

If we run pgadmin4-desktopmode as root
(something one really shouldn't do), it can read the config file and fail,
because of the wrong config for desktopmode.

[1]https://www.pgadmin.org/docs/pgadmin4/latest/config_py.html

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-02-09 08:19:05 +01:00
Florian Brandes
e4488f5efe pgadmin4: move package tests back into the package
We test pgadmin in nixosTests, because it needs a running postgresql instance.
This is now unnecessary since we can do so in the package itself.

This reduces the complexity of pgadmin and removes the need for the extra
nixosTests.

Also setting SERVER_MODE in `pkg/pip/setup_pip.py` does not have any effect
on the final package, so we remove it.
In NixOS, we use the module, which expects SERVER_MODE to be true (which it defaults to).
In non-NixOS installations, we will need the directory /var/lib/pgadmin and /var/log/pgadmin

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-02-09 08:06:52 +01:00
R. Ryantm
6fa50db065 htop: 3.2.1 -> 3.2.2 2023-02-09 06:33:52 +00:00
R. Ryantm
d5196ae0eb afterburn: 5.3.0 -> 5.4.0 2023-02-09 06:17:58 +00:00
Weijia Wang
910b85f2ae
Merge pull request #215388 from r-ryantm/auto-update/ffuf
ffuf: 1.5.0 -> 2.0.0
2023-02-09 06:59:50 +01:00
Nick Cao
fba0eaef41
Merge pull request #215441 from wegank/ligolo-ng-bump
ligolo-ng: 0.4.2 -> 0.4.3
2023-02-09 13:37:58 +08:00
Weijia Wang
e76b4fed8a
Merge pull request #215440 from r-ryantm/auto-update/subnetcalc
subnetcalc: 2.4.20 -> 2.4.21
2023-02-09 06:26:34 +01:00
Weijia Wang
275c67a37d ligolo-ng: 0.4.2 -> 0.4.3 2023-02-09 06:05:45 +01:00
R. Ryantm
7f23b8cdc0 subnetcalc: 2.4.20 -> 2.4.21 2023-02-09 04:55:39 +00:00
Mario Rodas
7483351ce7
Merge pull request #215342 from r-ryantm/auto-update/pgmetrics
pgmetrics: 1.14.0 -> 1.14.1
2023-02-08 21:48:32 -05:00
Mario Rodas
ee15927862
Merge pull request #215355 from r-ryantm/auto-update/resvg
resvg: 0.28.0 -> 0.29.0
2023-02-08 21:48:22 -05:00
Nick Cao
d735463553
Merge pull request #215413 from dotlambda/abcmidi-2023.02.07
abcmidi: 2023.01.21 -> 2023.02.07
2023-02-09 10:19:47 +08:00
Anderson Torres
4a1640af34 wtfis: init at 0.5.1 2023-02-08 23:05:32 -03:00
Nick Cao
39a4220aaf
stratisd: 3.5.0 -> 3.5.1
Diff: https://github.com/stratis-storage/stratisd/compare/v3.5.0...v3.5.1
2023-02-09 09:32:23 +08:00
Martin Weinelt
d6aaaa0158
Merge pull request #215216 from mweinelt/less
less: Apply patch for CVE-2022-46663
2023-02-09 01:07:17 +00:00
Nick Cao
14e906bdf0
Merge pull request #215398 from r-ryantm/auto-update/automatic-timezoned
automatic-timezoned: 1.0.61 -> 1.0.62
2023-02-09 09:07:07 +08:00
Nick Cao
853288c39d
Merge pull request #215186 from Trundle/pulumi-3.54.0
pulumi: 3.53.1 -> 3.54.0
2023-02-09 08:58:39 +08:00
Robert Schütz
bbdc8e5414 abcmidi: 2023.01.21 -> 2023.02.07 2023-02-08 16:58:37 -08:00
Nick Cao
de02509303
Merge pull request #215375 from azahi/iaito
iaito: 5.8.0 -> 5.8.2
2023-02-09 08:48:21 +08:00
Nick Cao
380d962601
Merge pull request #215339 from walkah/pulumi-bin-3.54.0
pulumi-bin: 3.53.1 -> 3.54.0
2023-02-09 08:35:20 +08:00
R. Ryantm
f4d975f357 automatic-timezoned: 1.0.61 -> 1.0.62 2023-02-08 22:56:13 +00:00
R. Ryantm
2829e696e2 ffuf: 1.5.0 -> 2.0.0 2023-02-08 21:57:54 +00:00
Azat Bahawi
0500164fcf
iaito: 5.8.0 -> 5.8.2 2023-02-08 23:50:21 +03:00
markuskowa
75ee2b454d
Merge pull request #215359 from r-ryantm/auto-update/moosefs
moosefs: 3.0.116 -> 3.0.117
2023-02-08 21:47:07 +01:00
R. Ryantm
ebc5868319 moosefs: 3.0.116 -> 3.0.117 2023-02-08 19:16:39 +00:00
R. Ryantm
9599df6f37 resvg: 0.28.0 -> 0.29.0 2023-02-08 19:02:00 +00:00
Martino Fontana
a846eac3b4 joystickwake: add recommended dep dbus-next 2023-02-08 19:28:46 +01:00
Weijia Wang
adcd627462
Merge pull request #207358 from r-ryantm/auto-update/geekbench
geekbench: 5.4.5 -> 5.4.6
2023-02-08 18:44:08 +01:00
Weijia Wang
12913e0f46
Merge pull request #206644 from r-ryantm/auto-update/snabb
snabb: 2022.10 -> 2022.12
2023-02-08 18:42:28 +01:00
R. Ryantm
561e6f59cb pgmetrics: 1.14.0 -> 1.14.1 2023-02-08 17:37:07 +00:00
James Walker
f5b9d5d0e2
pulumi-bin: 3.53.1 -> 3.54.0 2023-02-08 12:06:51 -05:00
Weijia Wang
e7ee36d0b2
Merge pull request #215299 from anthonyroussel/yubico-piv-tool_2_3_1
yubico-piv-tool: 2.3.0 -> 2.3.1
2023-02-08 16:40:39 +01:00
pennae
702e1fc743 nixos-render-docs: add all-features manpage renderer test
now that the renderer produces the output we want to keep for the future
we can add a test that checks all of its features. this test notably
does not include markdown headings since we don't want to have those in
manpages (at least right now), but tests for other converters may add
headings for themselves.
2023-02-08 15:23:34 +01:00
pennae
78052a22cb nixos-render-docs: track links in manpages
for the longest time we completely dropped link targets in
configuration.nix.5.  let's stop doing this now and instead provide a
footnote for each link in a given option, numbered locally per option.

we will currently duplicate the link for <labelless-links> because it
makes it easier to get the collection of all links in a given option.
this may not be useful enough, so over time we might decide to drop the
footnotes for such links.
2023-02-08 15:23:34 +01:00
pennae
3c7fd940ba nixos-render-docs: indent and embolden list item heads in manpages
this matches what html outputs do more closely, and feels like it'll be
easier to read because it looks less like just another paragraph.
2023-02-08 15:23:34 +01:00
pennae
f47adfcb6f nixos-render-docs: make manpage deflists a little nicer
indent the entire list by 4, just like each definition is already
indented by 4. this matches rendering in html, which indents terms once
and indents definitions twice.
2023-02-08 15:23:34 +01:00
pennae
1e4bafdbc5 nixos-render-docs: style file literals in manpages
similar to inline code these were indistinguishale from other text.
render then in italic font instead, like mdoc .Pa does.
2023-02-08 15:23:34 +01:00
pennae
29252d1477 nixos-render-docs: add quotes to inline code in manpages
other output types already have markings for inline code, manpages do
not. this can be somewhat confusing, so we'll do the least intrusive
thing: surrounding inline code blocks in ‘’. doing so separates inline
code from the rest of the text and is unlikely to collide with the
quoted contents. it's also what mdoc does with its Ql macro.
2023-02-08 15:23:34 +01:00
pennae
f33e360f67 nixos-render-docs: remove the ... escape in manpages
this is a holdover from docbook stylesheets. not really sure why they
did that.
2023-02-08 15:23:34 +01:00
pennae
3a3274231e nixos-render-docs: always render links bold in manpages
no reason to differentiate between links by source of their label. this
feature seems to be mostly used to change labels of links to other
options, but this should ultimately be done by auto-linking from
{option}`...`. at some point we may want to introduce a warning when
this pattern is encountered, but there's a lot to work out still before
we can do that.
2023-02-08 15:23:34 +01:00
pennae
5c5dadd382 nixos-render-docs: support compact lists in manpages
most of the lists in option docs are actually compact, but docbook to
manpage processing always rendered them as non-compact. compactifying
these lists improves readability somewhat since most lists and their
contents are pretty short.
2023-02-08 15:23:34 +01:00
pennae
10a4f0daca nixos-render-docs: add options manpage converter
mdoc is just too slow to render on groff, and semantic markup doesn't
help us any for generated pages.

this produces a lot of changes to configuration.nix.5, but only few
rendering changes. most of those seem to be place losing a space where
docbook emitted roff code that did not faithfully represent the input
text, though a few places also gained space where docbook dropped them.
notably we also don't need the compatibility code docbook-xsl emitted
because that problem was fixed over a decade ago.

this will handle block quotes, which the docbook stylesheets turned into
a mess of roff requests that ended up showing up in the output instead
of being processed.
2023-02-08 15:23:34 +01:00
pennae
56f1d99b16 nixos-render-docs: factor out sorting of options list 2023-02-08 15:23:34 +01:00
pennae
b2a5b4d789 nixos-render-docs: move list-is-compact attr to meta
Token.attr is a dict[str, str | int | float], meta has no restriction on
the value type. attrs is ostensibly meant for html attributes, meta for
any information whatsoever.
2023-02-08 15:23:34 +01:00
pennae
09411102f6 nixos-render-docs: add option block separators
this will be necessary for manpages, which separate option declarations
not with external tags but by interspersing mandoc spacing instructions.
2023-02-08 15:23:34 +01:00
pennae
32136b1b01 nixos-render-docs: don't render empty descriptions at all 2023-02-08 15:23:34 +01:00