summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorCarlos Durán Domínguez <wurt@wurt.eu>2026-02-26 00:17:33 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-02-26 19:08:52 +0000
commitc384f75b61e27557857cc474ffcd039d038c57c1 (patch)
tree70197ebf65b8da6d526975f009629e9d44abe355 /gnu
parent1ba2530e5965bca2af2965c6c3a9a80dbd33098d (diff)
gnu: sdrangel: Improve style.
* gnu/packages/radio.scm (sdrangel)[arguments]: Use G-expressions. Change-Id: I745270aa97978e8287b4762e31748ad3c70db0ec Reviewed-by: Giacomo Leidi <therewasa@fishinthecalculator.me> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/radio.scm84
1 files changed, 44 insertions, 40 deletions
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 5c26d5aa62a..27f52bb3c33 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -3002,46 +3002,50 @@ voice formats.")
sgp4
zlib))
(arguments
- `(#:tests? #f ; No test suite.
- #:configure-flags
- ,#~(list (string-append "-DAPT_DIR="
- #$(this-package-input "aptdec"))
- (string-append "-DDAB_DIR="
- #$(this-package-input "libdab"))
- (string-append "-DDSDCC_DIR="
- #$(this-package-input "dsdcc"))
- (string-append "-DMBE_DIR="
- #$(this-package-input "mbelib"))
- (string-append "-DSERIALDV_DIR="
- #$(this-package-input "serialdv"))
- (string-append "-DSGP4_DIR="
- #$(this-package-input "sgp4"))
- (string-append "-DSOAPYSDR_DIR="
- #$(this-package-input "soapysdr"))
- (string-append "-DIIO_DIR="
- #$(this-package-input "libiio")))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-unrecognized-compiler-option
- (lambda _
- (substitute* "cmake/Modules/CompilerOptions.cmake"
- (("-Wno-inconsistent-missing-override")
- "-fpermissive"))))
- (add-after 'unpack 'fix-CPU-extension-detection
- ;; ‘Fix’ in the static sense. TODO: Make this -tune'able.
- (lambda _
- (substitute* "CMakeLists.txt"
- (("set\\(ARCH_OPT \"native\"")
- "set(ARCH_OPT \"\""))
- (let ((file "cmake/Modules/DetectArchitecture.cmake"))
- ;; Disable all build-time CPU extension detection…
- (substitute* file
- (("detect_extensions\\(.*") ""))
- (when ,(target-x86-64?)
- ;; …but force extensions that are guaranteed to be available.
- (substitute* file
- ((".*cmake_pop_check_state" eof)
- (string-append "force_ext_available(SSE2)\n" eof))))))))))
+ (list
+ #:tests? #f ;No test suite.
+ #:configure-flags
+ #~(list (string-append "-DAPT_DIR="
+ #$(this-package-input "aptdec"))
+ (string-append "-DDAB_DIR="
+ #$(this-package-input "libdab"))
+ (string-append "-DDSDCC_DIR="
+ #$(this-package-input "dsdcc"))
+ (string-append "-DMBE_DIR="
+ #$(this-package-input "mbelib"))
+ (string-append "-DSERIALDV_DIR="
+ #$(this-package-input "serialdv"))
+ (string-append "-DSGP4_DIR="
+ #$(this-package-input "sgp4"))
+ (string-append "-DSOAPYSDR_DIR="
+ #$(this-package-input "soapysdr"))
+ (string-append "-DIIO_DIR="
+ #$(this-package-input "libiio")))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-unrecognized-compiler-option
+ (lambda _
+ (substitute* "cmake/Modules/CompilerOptions.cmake"
+ (("-Wno-inconsistent-missing-override")
+ "-fpermissive"))))
+ (add-after 'unpack 'fix-CPU-extension-detection
+ ;; ‘Fix’ in the static sense. TODO: Make this -tune'able.
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("set\\(ARCH_OPT \"native\"")
+ "set(ARCH_OPT \"\""))
+ (let ((file "cmake/Modules/DetectArchitecture.cmake"))
+ ;; Disable all build-time CPU extension detection…
+ (substitute* file
+ (("detect_extensions\\(.*") ""))
+ #$@(if (target-x86-64?)
+ ;; …but force extensions that are guaranteed to be
+ ;; available.
+ #~((substitute* file
+ ((".*cmake_pop_check_state" eof)
+ (string-append "force_ext_available(SSE2)\n"
+ eof))))
+ #~())))))))
(home-page "https://github.com/f4exb/sdrangel/wiki")
(synopsis "Software defined radio")
(description