aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-01-17 15:45:05 +0100
committerLudovic Courtès <ludo@gnu.org>2013-01-17 15:45:05 +0100
commitaba326f79c188e39368c910ddf1bcd884c68a32c (patch)
tree43bd3200a9a1b979d9b332f8b4e0c1fa8aa6fc0c
parent2a6c679561548b410ea34ff716c1165e8570609a (diff)
downloadguix-aba326f79c188e39368c910ddf1bcd884c68a32c.tar.gz
guix-aba326f79c188e39368c910ddf1bcd884c68a32c.zip
packages: Change `base32' to allow non-literal strings.
* guix/packages.scm (base32): Allow arguments that are not literal strings.
-rw-r--r--guix/packages.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/guix/packages.scm b/guix/packages.scm
index 384db6d362..e65877df58 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -93,9 +93,12 @@ representation."
(syntax-case s ()
((_ str)
(string? (syntax->datum #'str))
+ ;; A literal string: do the conversion at expansion time.
(with-syntax ((bv (nix-base32-string->bytevector
(syntax->datum #'str))))
- #''bv)))))
+ #''bv))
+ ((_ str)
+ #'(nix-base32-string->bytevector str)))))
;; A package.
fb'>services: Add 'log-cleanup' service to '%base-services' for build logs....Ludovic Courtès 2022-03-10services: guix: Add 'generate-substitute-key?' field....Ludovic Courtès 2022-02-25agetty-shepherd-service: Rename console agetty to "term-console" for clarity....Danny Milosavljevic 2022-02-25services: %base-services: Adapt agetty-service-type to depend on syslogd...Danny Milosavljevic 2022-02-25services: agetty: Add shepherd-requirement....Danny Milosavljevic 2022-02-20services: udev: Use a fixed location for the rules directory and config....Maxim Cournoyer 2022-01-20services: guix-publish: Add negative-ttl parameter....Guillaume Le Vaillant 2022-01-18daemon: Always default to gzip for log compression....Ludovic Courtès 2022-01-16services: guix: Add tar and gzip to PATH....Timothy Sample 2022-01-08services: networking: Add netmask to loopback address....Ludovic Courtès 2021-12-21services: static-networking: Enable multicast by default....Mathieu Othacehe 2021-12-20services: static-networking: Sanitize <network-address> values....Ludovic Courtès 2021-12-12services: Define '%loopback-static-networking'....Ludovic Courtès 2021-12-12services: Define '%qemu-static-networking'....Ludovic Courtès 2021-12-12services: static-networking: Change interface to mimic netlink....Ludovic Courtès 2021-12-12services: static-networking: Use Guile-Netlink on GNU/Linux....Ludovic Courtès 2021-11-30services: Accept <inferior-package>s in lieu of <package>s....Tobias Geerinckx-Rice 2021-11-23gnu: system: Make old-style swap use default flags....Josselin Poiret 2021-11-23system: Add swap flags....Josselin Poiret 2021-11-23system: Rework swap space support, add dependencies....Josselin Poiret 2021-08-29services: base: Honor file-system-create-mount-point? at all times....Maxim Cournoyer 2021-08-07services: pam-limits: fix limits.conf location...muradm 2021-08-04services: guix: Use "match-record" in activation....Brice Waegeneire 2021-07-13services: gpm: Use "make-forkexec-contstructor"....Brice Waegeneire 2021-06-29services: kmscon: Add keyboard-layout fields....luhui 2021-06-19services: guix: Authorize 'bordeaux.guix.gnu.org.pub' by default....Jack Hill 2021-06-14services: Remove deprecated service procedures....Ludovic Courtès 2021-04-03services: guix-publish: Add zstd compression by default....Ludovic Courtès 2021-04-01services: kmscon: Add font-engine and font-size fields....qblade 2021-03-18services: Enable "protected hardlinks" and "protected symlinks" by default....Leo Famulari 2021-01-13services: shepherd: 'shepherd-service-type' requires documentation....Ludovic Courtès 2020-12-15services: 'references-file' depends on Guile-Gcrypt....Ludovic Courtès 2020-12-09services: guix-publish: Depend on 'avahi-daemon' when needed....Ludovic Courtès 2020-12-07service: Add shepherd discover action....Mathieu Othacehe