Commit graph

77715 commits

Author SHA1 Message Date
Maxim Cournoyer a77e3a5846
services: configuration: Add tests.
* tests/services/configuration.scm: New file.
* Makefile.am (SCM_TESTS): Register it.
2021-05-08 01:04:31 -04:00
Maxim Cournoyer dd0826fbf3
services: configuration: Fix %location accessor name.
The non-hygienic binding of the source location accessor was set to
'-location'; in modules where multiple configurations were defined, it would
cause compilation warnings such as:

    gnu/services/mail.scm:175:0: warning: shadows previous definition of
    `%-location-procedure' at gnu/services/mail.scm:165:0

* gnu/services/configuration.scm (define-configuration-helper) <id>: Add a
missing #'stem argument to use the configuration name as a prefix to the
location accessor identifier.
2021-05-08 01:04:01 -04:00
Xinglu Chen b3e99d3399
services: configuration: Allow specifying a custom serializer.
In some cases, rather than globally disabling serialization, it may be more
appropriate to disable or otherwise alter the serialization procedure of a
specific field.  In large module, multiple configurations may also exist that
would need to alter the default serialization procedure, which is named after
the field type.  Being able to specify a per-field serialization procedure
provides more flexibility.

* gnu/services/configuration.scm (define-configuration): Add an optional
pattern variable to allow specifying a custom serialization procedure.
(define-configuration-helper) <field-serializer>: Use it to transform the
syntax.
(empty-serializer): New procedure.
(serialize-package): Alias to ‘empty-serializer’.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-05-08 00:50:39 -04:00
Maxim Cournoyer 3f9a12dc08
services: configuration: Allow disabling serialization.
Serialization is not always useful, for example when deriving command line
arguments from a configuration.  This change provides a way to turn it off,
which removes the need to define a bunch of dummy serialization procedures.

Credit goes to Andrew Gierth (RhodiumToad) from #guile for providing the
solution.  Thank you!

* gnu/services/configuration.scm (define-configuration-helper): New procedure.
(define-configuration) <no-serialization>: New syntactic keyword.  Use it in a
new pattern.  Refactor the macro so that it makes use of the above helper
procedure.
2021-05-08 00:50:39 -04:00
Maxim Cournoyer 1a2704add3
services: configuration: Avoid a compilation warning.
This resolves a compilation warning introduced with commit bb716e8d9d.

* gnu/services/configuration.scm (configuration->documentation): Use display
to print the string instead of format.
2021-05-08 00:50:38 -04:00
Vagrant Cascadian b4ab965dfa
gnu: linux-libre: Default to schedutil cpufreq governor on arm and arm64.
This has been the recommended default for arm and arm64 since since
v5.9 (upstream commit f259eab3ea0e7ed73db91f6358274dd3a9a27d79).

* gnu/packages/aux-files/linux-libre/5.10-arm.conf,
  gnu/packages/aux-files/linux-libre/5.10-arm.conf,
  gnu/packages/aux-files/linux-libre/5.11-arm.conf,
  gnu/packages/aux-files/linux-libre/5.11-arm.conf: Enable
  CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL, disable
  CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE.
2021-05-07 15:23:42 -07:00
Vagrant Cascadian d79829975a
gnu: diffoscope: Update to 174.
* gnu/packages/diffoscope.scm (diffoscope): Update to 174.
2021-05-07 14:23:49 -07:00
Nicolas Goaziou d934edbca1
gnu: mame: Fix build.
* gnu/packages/emulators.scm (mame)[inputs]: Add missing pulseaudio input.
2021-05-07 21:35:42 +02:00
Tobias Geerinckx-Rice b4d809b063
gnu: guile-ncurses-with-gpm: Fix Guile version.
* gnu/packages/guile-xyz.scm (guile-ncurses/gpm)[inputs]: Use guile-3.0,
not guile-2.2.
2021-05-07 20:06:31 +02:00
Tobias Geerinckx-Rice e15f7a6b5a
gnu: mbelib: Fix licence.
* gnu/packages/audio.scm (mbelib)[licence]: The package is ISC, the
testing framework BSD-3.
2021-05-07 19:16:46 +02:00
Tobias Geerinckx-Rice 4b861c89fb
gnu: mbelib: Fix version.
* gnu/packages/audio.scm (mbelib)[source]: Use GIT-VERSION.
2021-05-07 19:14:28 +02:00
Guillaume Le Vaillant d87547d242
gnu: Add sdrangel.
* gnu/packages/radio.scm (sdrangel): New variable.
2021-05-07 18:16:59 +02:00
Guillaume Le Vaillant f2a94a9e26
gnu: Add dsdcc.
* gnu/packages/radio.scm (dsdcc): New variable.
2021-05-07 18:16:59 +02:00
Guillaume Le Vaillant f1b0d0d76f
gnu: Add mbelib.
* gnu/packages/audio.scm (mbelib): New variable.
2021-05-07 18:16:59 +02:00
Guillaume Le Vaillant d1b1e21ded
gnu: Add sgp4.
* gnu/packages/astronomy.scm (sgp4): New variable.
2021-05-07 18:16:59 +02:00
Guillaume Le Vaillant 9a2251fb5a
gnu: Add libdab.
* gnu/packages/radio.scm (libdab): New variable.
2021-05-07 18:16:59 +02:00
Guillaume Le Vaillant 82b72a7d79
gnu: Add cm256cc.
* gnu/packages/radio.scm (cm256cc): New variable.
2021-05-07 18:16:59 +02:00
Guillaume Le Vaillant 1bd9f785b6
gnu: aptdec: Update to 1.7-1.5f91799.
* gnu/packages/radio.scm (aptdec): Update to 1.7-1.5f91799.
  [build-system]: Switch to cmake-build-system.
  [arguments]: Remove 'make-flags". Remove custom 'configure' and 'install'
  phases.
2021-05-07 18:16:59 +02:00
Guillaume Le Vaillant b6bfad7e32
gnu: Add serialdv.
* gnu/packages/radio.scm (serialdv): New variable.
2021-05-07 18:16:59 +02:00
Guillaume Le Vaillant 86a6749fbb
gnu: Add csdr.
* gnu/packages/radio.scm (csdr): New variable.
2021-05-07 18:16:59 +02:00
Tobias Geerinckx-Rice 71e9522904
gnu: xfce4-clipman-plugin: Update to 1.6.2.
* gnu/packages/xfce.scm (xfce4-clipman-plugin): Update to 1.6.2.
2021-05-07 18:03:09 +02:00
Tobias Geerinckx-Rice 8f36967e0e
gnu: thunar: Update to 4.16.7.
* gnu/packages/xfce.scm (thunar): Update to 4.16.7.
2021-05-07 18:03:09 +02:00
Tobias Geerinckx-Rice e2a6de5057
gnu: kitty: Update to 0.20.3.
* gnu/packages/terminals.scm (kitty): Update to 0.20.3.
2021-05-07 18:03:09 +02:00
Nicolas Goaziou ccaf29afd0
gnu: emacs-pyim-basedict: Update to 0.5.0.
* gnu/packages/emacs-xyz.scm (emacs-pyim-basedict): Update to 0.5.0.
2021-05-07 17:57:33 +02:00
Nicolas Goaziou e4cc6e0bb1
gnu: emacs-pyim: Update to 3.7.2.
* gnu/packages/emacs-xyz.scm (emacs-pyim): Update to 3.7.2.
2021-05-07 17:54:25 +02:00
Nicolas Goaziou 646a722658
gnu: giac: Update to 1.7.0-5.
* gnu/packages/algebra.scm (giac): Update to 1.7.0-5.
2021-05-07 17:45:04 +02:00
Nicolas Goaziou 1a5fb536e2
gnu: mame: Update to 0.231.
* gnu/packages/emulators.scm (mame): Update to 0.231.
2021-05-07 17:40:34 +02:00
Nicolas Goaziou b5e5425f61
gnu: texmacs: Update to 1.99.20.
* gnu/packages/text-editors.scm (texmacs): Update to 1.99.20.
2021-05-07 17:34:29 +02:00
Nicolas Goaziou d29c769bcc
gnu: manuskript: Update to 0.12.0.
* gnu/packages/text-editors.scm (manuskript): Update to 0.12.0.
2021-05-07 16:45:32 +02:00
Nicolas Goaziou f103cf276d
gnu: emacs-flycheck-grammalecte: Update to 1.4.
* gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte): Update to 1.4.
2021-05-07 16:33:00 +02:00
Marius Bakke 165786bb7a
gnu: Remove python-ipaddress.
This package is part of the Python standard library since CPython 3.3.

* gnu/packages/python-xyz.scm (python-ipaddress): Merge with ...
(python2-ipaddress): ... this.
[name, arguments]: Adjust accordingly.
2021-05-07 16:01:58 +02:00
Marius Bakke f387523c62
gnu: python-django-netfields: Remove obsolete input.
* gnu/packages/django.scm (python-django-netfields)[propagated-inputs]: Remove
PYTHON-IPADDRESS.
2021-05-07 16:01:58 +02:00
Marius Bakke a0365cf007
gnu: python-djangorestframework: Enable tests.
* gnu/packages/django.scm (python-djangorestframework)[source]: Change to
GIT-FETCH.
[arguments]: Remove #:tests?.  Add #:phases.
[native-inputs]: New field.
2021-05-07 16:01:58 +02:00
Maxim Cournoyer bb716e8d9d
services: configuration: Add a new helper to ease generating documentation.
The original (undocumented) procedure to generate the doc has a difficult to
grasp interface; add a simpler one on top of it.

* gnu/services/configuration.scm (configuration->documentation): New procedure.
2021-05-07 08:59:31 -04:00
Xinglu Chen d1caabbce7
services: configuration: Support fields without default values.
Not all fields in a configuration have a sensible default value.  This changes
makes it possible to omit a default value for a configuration field, requiring
the user to provide a value.

* gnu/services/configuration.scm (configuration-missing-field): New procedure.
(define-configuration): Make default value optional.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-05-07 08:57:45 -04:00
Pierre Neidhardt 7ae9ef3b54
Revert "gnu: Add pathname-utils."
This reverts commit 22796f1ad1.

This is an accidental duplicate of 3de01371dc.
2021-05-07 11:54:49 +02:00
Pierre Neidhardt ff8f743f7c
gnu: emacs-ytdl: Update to 1.3.6.
* gnu/packages/emacs-xyz.scm (emacs-ytdl): Update to 1.3.6.
2021-05-07 09:43:51 +02:00
Ricardo Wurmus 9b99b6d947
gnu: Add ensembl-vep.
* gnu/packages/bioinformatics.scm (ensembl-vep): New variable.
2021-05-07 08:52:49 +02:00
Tobias Geerinckx-Rice d3ab3b276a
gnu: perl-svg: Update to 2.86.
* gnu/packages/perl.scm (perl-svg): Update to 2.86.
2021-05-07 02:44:42 +02:00
Tobias Geerinckx-Rice 956cc1a819
gnu: bcachefs-tools: Update to 0.1-7.7942d5c.
* gnu/packages/file-systems.scm (bcachefs-tools): Update to 0.1-7.7942d5c.
2021-05-07 02:40:49 +02:00
Tobias Geerinckx-Rice b8760c8ef5
gnu: photoflare: Update to 1.6.8.
* gnu/packages/photo.scm (photoflare): Update to 1.6.8.
2021-05-07 02:20:33 +02:00
Tobias Geerinckx-Rice a06a041579
gnu: gtkwave: Update to 3.3.109.
* gnu/packages/fpga.scm (gtkwave): Update to 3.3.109.
2021-05-07 02:16:05 +02:00
Tobias Geerinckx-Rice 6b4f87fa69
gnu: tinyproxy: Run tests.
* gnu/packages/web.scm (tinyproxy)[arguments]: Run the test suite.
[native-inputs]: Add perl.
2021-05-07 02:11:00 +02:00
Tobias Geerinckx-Rice 3dc591635e
gnu: tinyproxy: Update to 1.11.0.
* gnu/packages/web.scm (tinyproxy): Update to 1.11.0.
2021-05-07 02:10:22 +02:00
Tobias Geerinckx-Rice 1d2b75874a
gnu: perl-cgi: Update to 4.52.
* gnu/packages/web.scm (perl-cgi): Update to 4.52.
2021-05-07 02:04:40 +02:00
Tobias Geerinckx-Rice 53bad7f4df
gnu: font-liberation: Update to 2.1.4.
* gnu/packages/fonts.scm (font-liberation): Update to 2.1.4.
2021-05-07 02:02:29 +02:00
Tobias Geerinckx-Rice 6d6b720ea0
gnu: conky: Enable WLAN support.
* gnu/packages/conky.scm (conky)[arguments]: Add "-DBUILD_WLAN=ON"
to #:configure-flags.
[inputs]: Add wireless-tools.
2021-05-07 00:09:33 +02:00
Tobias Geerinckx-Rice 4002fcfb8b
gnu: conky: Run tests.
There were always tests.

* gnu/packages/conky.scm (conky)[arguments]: Build and run tests.
2021-05-06 23:55:31 +02:00
Tobias Geerinckx-Rice dfef3121c3
gnu: conky: Update to 1.12.2.
* gnu/packages/conky.scm (conky): Update to 1.12.2.
2021-05-06 23:55:12 +02:00
Tobias Geerinckx-Rice bf3589f16c
gnu: remind: Move Tcl/Tk scripts to separate output.
* gnu/packages/calendar.scm (remind)[outputs]: Add "tcl".
[arguments]: Add a new 'split-:tcl phase.
[inputs]: Add inetutils, tcl, tcllib, and tk.
2021-05-06 23:30:35 +02:00