aboutsummaryrefslogtreecommitdiff
path: root/doc/package-hello.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2019-11-10 16:03:50 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2019-11-10 16:05:17 +0100
commit2ffae2689aef8efb325f97ec54abcdeee8588aa0 (patch)
treea9b5c88c1f3cea38d4ae4a34c89b55f03ee1c6d7 /doc/package-hello.scm
parente0f6d366ca8508d4a49eb636e8ee7e047079e32a (diff)
downloadguix-2ffae2689aef8efb325f97ec54abcdeee8588aa0.tar.gz
guix-2ffae2689aef8efb325f97ec54abcdeee8588aa0.zip
gnu: limnoria: Update to 2019.11.09 [security fix].
See <https://github.com/ProgVal/Limnoria/wiki/math-eval-vulnerability> (CVE number pending). * gnu/packages/irc.scm (limnoria): Update to 2019.11.09. Reported-by: Val Lorentz <progval@progval.net>
Diffstat (limited to 'doc/package-hello.scm')
0 files changed, 0 insertions, 0 deletions
pulseaudio-configuration make-pulseaudio-configuration pulseaudio-configuration? (client-conf pulseaudio-configuration-client-conf (default '())) (daemon-conf pulseaudio-configuration-daemon-conf ;; Flat volumes may cause unpleasant experiences to users ;; when applications inadvertently max out the system volume ;; (see e.g. <https://bugs.gnu.org/38172>). (default '((flat-volumes . no)))) (script-file pulseaudio-configuration-script-file (default (file-append pulseaudio "/etc/pulse/default.pa"))) (extra-script-files pulseaudio-configuration-extra-script-files (default '())) (system-script-file pulseaudio-configuration-system-script-file (default (file-append pulseaudio "/etc/pulse/system.pa")))) (define (pulseaudio-conf-entry arg) (match arg ((key . value) (format #f "~a = ~s~%" key value)) ((? string? _) (string-append arg "\n")))) (define pulseaudio-environment (match-lambda (($ <pulseaudio-configuration> client-conf daemon-conf default-script-file) ;; These config files kept at a fixed location, so that the following ;; environment values are stable and do not require the user to reboot to ;; effect their PulseAudio configuration changes. '(("PULSE_CONFIG" . "/etc/pulse/daemon.conf") ("PULSE_CLIENTCONFIG" . "/etc/pulse/client.conf"))))) (define (extra-script-files->file-union extra-script-files) "Return a G-exp obtained by processing EXTRA-SCRIPT-FILES with FILE-UNION." (define (file-like->name file) (match file ((? local-file?) (local-file-name file)) ((? plain-file?) (plain-file-name file)) ((? computed-file?) (computed-file-name file)) (_ (leave (G_ "~a is not a local-file, plain-file or \ computed-file object~%") file)))) (define (assert-pulseaudio-script-file-name name) (unless (string-suffix? ".pa" name) (leave (G_ "`~a' lacks the required `.pa' file name extension~%") name)) name) (let ((labels (map (compose assert-pulseaudio-script-file-name file-like->name) extra-script-files))) (file-union "default.pa.d" (zip labels extra-script-files)))) (define (append-include-directive script-file) "Append an include directive to source scripts under /etc/pulse/default.pa.d." (computed-file "default.pa" #~(begin (use-modules (ice-9 textual-ports)) (define script-text (call-with-input-file #$script-file get-string-all)) (call-with-output-file #$output (lambda (port) (format port (string-append script-text " ### Added by Guix to include scripts specified in extra-script-files. .nofail .include /etc/pulse/default.pa.d~%"))))))) (define pulseaudio-etc (match-lambda (($ <pulseaudio-configuration> client-conf daemon-conf default-script-file extra-script-files system-script-file) `(("pulse" ,(file-union "pulse" `(("default.pa" ,(if (null? extra-script-files) default-script-file (append-include-directive default-script-file))) ("system.pa" ,system-script-file) ,@(if (null? extra-script-files) '() `(("default.pa.d" ,(extra-script-files->file-union extra-script-files)))) ("daemon.conf" ,(apply mixed-text-file "daemon.conf" "default-script-file = /etc/pulse/default.pa\n" (map pulseaudio-conf-entry daemon-conf))) ("client.conf" ,(apply mixed-text-file "client.conf" (map pulseaudio-conf-entry client-conf)))))))))) (define pulseaudio-service-type (service-type (name 'pulseaudio) (extensions (list (service-extension session-environment-service-type pulseaudio-environment) (service-extension etc-service-type pulseaudio-etc) (service-extension udev-service-type (const (list pulseaudio))))) (default-value (pulseaudio-configuration)) (description "Configure PulseAudio sound support."))) ;;; ;;; LADSPA ;;; (define-record-type* <ladspa-configuration> ladspa-configuration make-ladspa-configuration ladspa-configuration? (plugins ladspa-configuration-plugins (default '()))) (define (ladspa-environment config) ;; Define this variable in the global environment such that ;; pulseaudio swh-plugins (and similar LADSPA plugins) work. `(("LADSPA_PATH" . (string-join ',(map (lambda (package) (file-append package "/lib/ladspa")) (ladspa-configuration-plugins config)) ":")))) (define ladspa-service-type (service-type (name 'ladspa) (extensions (list (service-extension session-environment-service-type ladspa-environment))) (default-value (ladspa-configuration)) (description "Configure LADSPA plugins."))) ;;; sound.scm ends here