aboutsummaryrefslogtreecommitdiff
path: root/tests/base64.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-04-20 15:50:59 +0200
committerLudovic Courtès <ludo@gnu.org>2015-04-20 15:50:59 +0200
commit38cf2ba084881a4c8fca0ee2888b5fd5724e9104 (patch)
treec1d0a83faa8e7519682c30bf7c072bfbfb1d61aa /tests/base64.scm
parentf73286345e8e9cb059f54a9d68fe19e57de75cdc (diff)
downloadguix-38cf2ba084881a4c8fca0ee2888b5fd5724e9104.tar.gz
guix-38cf2ba084881a4c8fca0ee2888b5fd5724e9104.zip
gnu: Remove all #:select from (gnu packages ...) modules.
This works around Guile bug <http://bugs.gnu.org/15540>. Reported by Andreas Enge <andreas@enge.fr>. * gnu/packages/engineering.scm: Don't #:select from (gnu packages ...). * gnu/packages/gcc.scm: Likewise. * gnu/packages/package-management.scm: Likewise. * gnu/packages/photo.scm: Likewise. * gnu/packages/pulseaudio.scm: Likewise. * gnu/packages/moe.scm: Likewise, and #:select from (guix licenses) instead.
Diffstat (limited to 'tests/base64.scm')
0 files changed, 0 insertions, 0 deletions
e module. Another way would be to move one of the configurations to its own module, like what was done with (gnu services getmail). However, this would mean that there would be multiple modules containing configurations for related programs, e.g. we have (gnu services mail) and (gnu services getmail), it doesn’t make much sense to keep the Getmail configuration in its own module. This patch will allow one to write something like this: (define-configuration foo-configuration (bar (string "bob") "Option bar.") (prefix bar-)) and the value of the ‘bar’ field would be serialized using a procedure named ‘bar-serialize-string’ instead of just ‘serialize-string’. * gnu/services/configuration.scm (define-maybe-helper): Accept ‘prefix’ argument for using serializer with custom prefix. (define-maybe): Pattern match on ‘prefix’ literal. (define-configuration-helper): Accept ‘prefix’ argument for using serializer with custom prefix. (define-configuration): Pattern match on ‘prefix’ literal. * tests/services/configuration.scm ("serialize-configuration with prefix"): New test. Signed-off-by: Ludovic Courtès <ludo@gnu.org> 2021-05-17services: configuration: Add a define-maybe/no-serialization syntax.Maxim Cournoyer Before this change, using define-maybe along define-configuration with the no-serialization syntactic keyword would result in the following warning: warning: possibly unbound variable `VARIABLE-NAME' This change introduces the define-maybe/no-serialization variant that does away with defining a serialization helper procedure, which makes it possible to avoid the above warning. * gnu/services/configuration.scm (define-maybe/no-serialization): New syntax. (define-maybe-helper): New procedure. (define-maybe): Define syntax using the above procedure. * tests/services/configuration.scm (tests): Fix module name. (custom-number-serializer): Do not print to standard output. (maybe-number?, serialize-maybe-number): New procedures defined via the define-maybe macro. (config-with-maybe-number): New configuration. (serialize-number): New procedure. ("maybe value serialization"): New test. (maybe-string?): New procedure defined via the define-maybe/no-serialization macro. (config-with-maybe-string/no-serialization): New configuration. ("maybe value without serialization no procedure bound"): New test. 2021-05-08services: configuration: Add tests.Maxim Cournoyer * tests/services/configuration.scm: New file. * Makefile.am (SCM_TESTS): Register it. 2021-02-12services: Add transmission-daemon service.Simon South * gnu/services/file-sharing.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * po/packages/POTFILES.in: Add it. * tests/services/file-sharing.scm: New file. * Makefile.am (SCM_TESTS): Add it. * doc/guix.texi (File-Sharing Services): New section. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> 2020-08-02services: Add zram-device-service.Efraim Flashner * gnu/services/linux.scm (<zram-device-configuration>): New record. (zram-device-service-type): New variable. * doc/guix.texi (Linux Services): Document it. * tests/services/linux.scm (zram-swap-device-test): New tests. 2020-01-31gnu: Add earlyoom-service-type.Maxim Cournoyer * gnu/services/linux.scm: New file. * tests/services/linux.scm: Add test. * Makefile.am (SCM_TESTS): Register test. * doc/guix.texi (Linux Services): Add a new section and document the new service and its configuration.