[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/20: gnu: hostapd: Use G-expressions.
From: |
guix-commits |
Subject: |
05/20: gnu: hostapd: Use G-expressions. |
Date: |
Wed, 19 Jan 2022 13:14:09 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit a41fee184fe78d8aefaefe571c0cb2e49f847ce8
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jan 16 01:00:00 2022 +0100
gnu: hostapd: Use G-expressions.
* gnu/packages/admin.scm (hostapd)[arguments]:
Rewrite as G-expressions.
---
gnu/packages/admin.scm | 75 +++++++++++++++++++++++---------------------------
1 file changed, 35 insertions(+), 40 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 5ebfe433f9..4f84e29499 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2023,46 +2023,41 @@ command.")
"0pcik0a6yin9nib02frjhaglmg44hwik086iwg1751b7kdwpqvi0"))))
(build-system gnu-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'configure
- (lambda _
- ;; This is mostly copied from 'wpa-supplicant' above.
- (chdir "hostapd")
- (copy-file "defconfig" ".config")
- (let ((port (open-file ".config" "al")))
- (display "
- CONFIG_LIBNL32=y
- CONFIG_IEEE80211R=y
- CONFIG_IEEE80211N=y
- CONFIG_IEEE80211AC=y\n" port)
- (close-port port))))
- (add-after 'unpack 'patch-pkg-config
- (lambda _
- (substitute* "src/drivers/drivers.mak"
- (("pkg-config")
- ,(pkg-config-for-target)))))
- (add-after 'install 'install-man-pages
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (man (string-append out "/share/man"))
- (man1 (string-append man "/man1"))
- (man8 (string-append man "/man8")))
- (define (copy-man-page target)
- (lambda (file)
- (install-file file target)))
-
- (for-each (copy-man-page man1)
- (find-files "." "\\.1"))
- (for-each (copy-man-page man8)
- (find-files "." "\\.8"))))))
-
- #:make-flags (list (string-append "CC=" ,(cc-for-target))
- (string-append "BINDIR=" (assoc-ref %outputs "out")
- "/sbin")
- (string-append "LIBDIR=" (assoc-ref %outputs "out")
- "/lib"))
- #:tests? #f))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (replace 'configure
+ (lambda _
+ ;; This is mostly copied from 'wpa-supplicant' above.
+ (chdir "hostapd")
+ (copy-file "defconfig" ".config")
+ (let ((port (open-file ".config" "al")))
+ (display "CONFIG_LIBNL32=y
+ CONFIG_IEEE80211R=y
+ CONFIG_IEEE80211N=y
+ CONFIG_IEEE80211AC=y\n" port)
+ (close-port port))))
+ (add-after 'unpack 'patch-pkg-config
+ (lambda _
+ (substitute* "src/drivers/drivers.mak"
+ (("pkg-config")
+ #$(pkg-config-for-target)))))
+ (add-after 'install 'install-man-pages
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((man (string-append #$output "/share/man"))
+ (man1 (string-append man "/man1"))
+ (man8 (string-append man "/man8")))
+ (define (copy-man-page target)
+ (lambda (file)
+ (install-file file target)))
+ (for-each (copy-man-page man1)
+ (find-files "." "\\.1"))
+ (for-each (copy-man-page man8)
+ (find-files "." "\\.8"))))))
+ #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "BINDIR=" #$output "/sbin")
+ (string-append "LIBDIR=" #$output "/lib"))
+ #:tests? #f))
(native-inputs (list pkg-config))
;; There's an optional dependency on SQLite.
- branch master updated (6e92790b42 -> 42f246eb84), guix-commits, 2022/01/19
- 01/20: gnu: bind: Update to 9.16.25., guix-commits, 2022/01/19
- 09/20: gnu: make-linux-libre*: Use G-expressions., guix-commits, 2022/01/19
- 04/20: gnu: hostapd: Use PKG-CONFIG-FOR-TARGET., guix-commits, 2022/01/19
- 05/20: gnu: hostapd: Use G-expressions.,
guix-commits <=
- 08/20: gnu: scanbd: Fix build., guix-commits, 2022/01/19
- 06/20: gnu: chromaprint: Update to 1.5.1., guix-commits, 2022/01/19
- 07/20: gnu: scanbd: Use G-expressions., guix-commits, 2022/01/19
- 11/20: gnu: acpi-call-linux-module: Use G-expressions., guix-commits, 2022/01/19
- 10/20: build-system/linux-module: Use G-expressions., guix-commits, 2022/01/19
- 12/20: gnu: librem-ec-acpi-linux-module: Unquote arguments., guix-commits, 2022/01/19
- 15/20: gnu: vhba-module: Unquote arguments., guix-commits, 2022/01/19
- 16/20: gnu: bbswitch-module: Unquote arguments., guix-commits, 2022/01/19
- 02/20: gnu: expat: Add replacement for [security fixes]., guix-commits, 2022/01/19
- 03/20: gnu: hostapd: Update to 2.10., guix-commits, 2022/01/19