Commit Graph

59734 Commits

Author SHA1 Message Date
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
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
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
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
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
pennae
11daebd2d9 nixos-render-docs: add block and inline joiners
these work together with render and renderInline to produce an output
from either of the two. rendering manpages will need both: to join
blocks with newlines, and to run some postprocessing and the rendered inlines.
2023-02-08 15:23:34 +01:00
pennae
5a5255983b nixos-render-docs: calculate list end indices
that'll be useful to calculate the width of list item heads, which we'll
ned to render manpages.
2023-02-08 15:23:34 +01:00
pennae
edccae739a nixos-render-docs: add a test for running mypy
pulling mypy into the build closure is unfortunately not reasonable, the
closure for mypy is rather large and takes a long time to build. if we
have the type checks hooked into CI we'll get most of the benefit though.
2023-02-08 15:23:34 +01:00
K900
6bf8f2bf1f
Merge pull request #215307 from K900/kio-admin
kio-admin: add meta
2023-02-08 17:13:39 +03:00