sternenseemann
858de5f47a
libcmd: add support for lowdown >= 1.4
...
lowdown 1.4.0 changed the lowdown_opts to include a new and separate
lowdown_opts_term which allows for configuring values specific to
-Tterm (which we're using). This version should have been called 2.0.0
according to semver, hence 2.0.0 was released later without any actual
breaking changes to sort of migitate the problem.
We need to support lowdown >= 1.3 && < 1.4 since the ship has sailed for
updating lowdown in NixOS 25.05 as well as lowdown >= 1.4 or we'll be
stuck in Nixpkgs forever. Support for < 1.4 can be dropped as soon as
NixOS 25.05 is EOL, assuming this change lands before NixOS 25.11
branch-off.
We detect the changed API based on the lowdown version from pkg-config
and define LOWDOWN_SEPARATE_TERM_OPTS based on that. The ifdef is named
according to the specific API change that impacts us, so that it's
hopefully a little simpler to maintain going forward. In the new API,
all newly configurable settings use what would have been the (implicit)
default before. Changing some of these values, especially hpadding,
could be interesting in future changes.
Compared to cl/3081, this change makes sure to initialize all new fields
of lowdown_opts_term explicitly.
It seems that, while making -Tterm more configurable, lowdown's word
wrapping behavior changed slightly which broke basic_repl.test. I've
chosen to work around this by using builtins.add as an example which has
a very short documentation string, so wrapping doesn't matter.
Change-Id: Id73be4c0e43d7eb4f56e10a261b4254402698ff8
2025-07-23 16:45:25 +02:00
..
2025-07-22 12:33:49 +00:00
2023-12-01 12:06:43 -05:00
2025-03-07 07:45:08 -05:00
2025-07-17 12:36:54 -07:00
2025-02-16 14:15:36 +01:00
2024-06-01 20:31:24 +02:00
2025-07-22 10:39:32 +00:00
2025-05-02 10:57:15 +00:00
2025-07-23 16:45:25 +02:00
2025-05-12 13:37:54 +02:00
2025-03-02 17:37:12 +00:00
2023-12-01 12:06:43 -05:00
2024-10-30 15:12:35 +04:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-01-23 17:57:52 -08:00
2024-06-01 20:31:24 +02:00
2023-12-01 12:06:43 -05:00
2025-07-22 10:39:32 +00:00
2023-12-01 12:06:43 -05:00
2024-03-07 10:46:47 +01:00
2023-12-01 12:06:43 -05:00
2024-03-07 10:46:47 +01:00
2024-08-25 19:55:47 +02:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-06-24 10:49:49 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-06-24 10:49:49 +00:00
2025-07-22 15:32:25 +02:00
2025-07-16 23:02:16 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-01-20 15:05:50 +01:00
2025-07-22 10:39:32 +00:00
2025-07-07 11:44:17 +00:00
2025-07-07 11:44:17 +00:00
2024-10-29 18:34:54 +01:00
2025-07-16 23:02:16 +00:00
2023-12-01 12:06:43 -05:00
2025-05-27 22:20:22 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-10-30 15:12:35 +04:00
2024-05-03 16:26:16 +02:00
2025-07-22 12:33:49 +00:00
2024-06-01 20:31:24 +02:00
2024-03-04 08:57:44 +01:00
2025-07-07 11:44:17 +00:00
2025-07-07 11:44:17 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-03-04 07:15:08 +01:00
2025-05-29 15:25:12 +02:00
2025-05-29 15:25:12 +02:00
2024-06-30 19:28:14 +02:00
2023-12-01 12:06:43 -05:00
2025-07-07 11:44:17 +00:00
2023-12-01 12:06:43 -05:00
2024-05-08 19:31:43 +00:00
2024-05-08 19:31:43 +00:00
2024-03-07 10:46:47 +01:00
2025-07-22 10:39:32 +00:00
2025-05-22 14:00:19 +02:00
2024-09-28 14:52:06 +02:00
2025-05-28 22:24:23 +00:00
2023-12-01 12:06:43 -05:00
2024-08-17 15:48:10 +00:00
2025-01-26 11:22:03 +01:00
2023-12-01 12:06:43 -05:00
2025-03-21 13:19:15 -07:00
2023-12-01 12:06:43 -05:00
2025-02-27 00:26:48 +01:00
2025-02-27 00:26:48 +01:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-05-08 20:23:12 +02:00
2025-07-22 10:39:32 +00:00
2024-09-26 14:32:29 -07:00
2024-09-26 14:32:29 -07:00
2024-06-27 22:44:16 -07:00
2024-03-29 22:57:40 -07:00
2025-06-01 18:59:23 +02:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-07-19 20:55:55 +00:00
2024-04-25 23:24:21 -04:00
2024-04-25 23:24:21 -04:00
2025-06-02 20:05:32 +02:00
2024-10-14 17:19:22 +04:00
2024-11-01 11:59:59 +00:00
2024-03-07 10:46:47 +01:00
2024-01-11 07:21:16 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-05-11 17:26:55 +02:00
2024-12-06 00:59:53 +01:00
2024-05-06 18:56:40 +02:00
2024-06-24 14:00:43 -07:00
2025-05-21 20:36:20 +02:00
2025-06-01 20:19:37 +02:00
2024-04-08 15:40:12 -07:00
2024-03-29 22:57:40 -07:00
2025-06-29 21:26:01 +02:00
2024-04-08 15:40:12 -07:00
2025-02-16 14:15:36 +01:00
2025-07-22 12:33:49 +00:00
2024-12-10 15:43:31 -08:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-06-10 15:22:22 +00:00
2025-06-10 15:22:22 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-03-29 22:57:40 -07:00
2023-12-01 12:06:43 -05:00
2024-07-09 13:55:05 +00:00
2024-03-07 03:34:00 +01:00
2024-03-07 03:34:00 +01:00
2024-03-07 03:34:00 +01:00
2024-06-24 14:00:43 -07:00
2025-05-20 13:27:04 +02:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-02-27 00:26:48 +01:00
2023-12-01 12:06:43 -05:00
2024-05-12 23:04:21 +02:00
2025-07-22 10:39:32 +00:00
2025-02-17 16:05:06 -08:00
2023-12-01 12:06:43 -05:00
2025-03-02 18:30:30 +01:00
2024-06-24 14:00:43 -07:00
2024-03-29 22:57:40 -07:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-02-27 00:26:48 +01:00
2025-02-27 00:26:48 +01:00
2023-12-01 12:06:43 -05:00
2024-08-23 17:49:15 -07:00
2025-01-05 14:50:45 +01:00
2025-01-05 14:50:45 +01:00
2025-07-22 10:39:32 +00:00
2023-12-01 12:06:43 -05:00
2025-05-20 13:27:04 +02:00
2023-12-01 12:06:43 -05:00
2024-11-28 18:15:52 +01:00
2023-12-01 12:06:43 -05:00
2024-08-04 20:41:19 -07:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-07-22 10:39:32 +00:00
2024-03-04 07:50:55 +01:00
2025-03-07 07:45:08 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-03-29 22:57:40 -07:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-07-22 10:39:32 +00:00
2023-12-01 12:06:43 -05:00
2025-07-22 10:39:32 +00:00
2024-06-23 11:52:49 +00:00
2023-12-01 12:06:43 -05:00
2025-03-11 20:21:24 +01:00
2025-06-24 10:49:49 +00:00
2025-03-02 17:37:12 +00:00
2024-04-11 15:43:58 +03:00
2024-08-17 15:48:10 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-03-14 14:30:38 -07:00
2023-12-01 12:06:43 -05:00
2024-05-28 04:20:00 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-05-11 01:07:18 +02:00
2025-07-07 11:44:17 +00:00
2023-12-01 12:06:43 -05:00