diff options
author | Timo Wilken | 2023-02-17 20:00:16 +0100 |
---|---|---|
committer | Timo Wilken | 2023-02-17 20:00:16 +0100 |
commit | 2e1998111667216351a4189be9f56b24743fe6a7 (patch) | |
tree | 25d479a99402f0dd4b7a6a316b09ccf540a48315 /tw/system/lud.scm | |
parent | 8750e34390894eff23b22417c28ef4dd0b1ad54b (diff) |
Fix indentation for computed-file
Diffstat (limited to 'tw/system/lud.scm')
-rw-r--r-- | tw/system/lud.scm | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/tw/system/lud.scm b/tw/system/lud.scm index f376f752..9986c30a 100644 --- a/tw/system/lud.scm +++ b/tw/system/lud.scm @@ -26,20 +26,19 @@ #~(kill (call-with-input-file "/var/run/httpd" read) SIGHUP))) (define nextcloud-php.ini - (computed-file - "nextcloud-php.ini" - #~(begin - (use-modules (ice-9 popen) (ice-9 rdelim)) - (let* ((php-config #$(file-append php "/bin/php-config")) - (pipe (open-pipe* OPEN_READ php-config "--extension-dir")) - (php-extdir (read-line pipe))) - (unless (zero? (status:exit-val (close-pipe pipe))) - (error "Failed to get PHP extension dir")) - (with-output-to-file #$output - ;; Guix's PHP comes with the following extensions built-in, - ;; so no extension= line necessary: - ;; pdo_mysql, bcmath, bz2, exif, gd, iconv, intl - (lambda () (display (string-append "\ + (computed-file "nextcloud-php.ini" + #~(begin + (use-modules (ice-9 popen) (ice-9 rdelim)) + (let* ((php-config #$(file-append php "/bin/php-config")) + (pipe (open-pipe* OPEN_READ php-config "--extension-dir")) + (php-extdir (read-line pipe))) + (unless (zero? (status:exit-val (close-pipe pipe))) + (error "Failed to get PHP extension dir")) + (with-output-to-file #$output + ;; Guix's PHP comes with the following extensions built-in, + ;; so no extension= line necessary: + ;; pdo_mysql, bcmath, bz2, exif, gd, iconv, intl + (lambda () (display (string-append "\ memory_limit=512M extension_dir=/run/current-system/profile/lib/php/extensions/" (basename php-extdir) " ; Caching extensions for Nextcloud |