aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2024-11-16 19:35:35 +0300
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2024-11-23 08:49:06 +0300
commit2e223bc57cffbd2639a6760179448ea6104a45e7 (patch)
tree83baed32fa48225db0f74e67f6f436adbe0ad032
parent90c7d7783378856e93318678b0134bf22f745840 (diff)
downloadguix-2e223bc57cffbd2639a6760179448ea6104a45e7.tar.gz
guix-2e223bc57cffbd2639a6760179448ea6104a45e7.zip
gnu: stlink: Use GEXPs.
* gnu/packages/embedded.scm (stlink): Use GEXPs. Change-Id: I26e2649f29c1e742f848f3efc5a10c218bb5bb28
-rw-r--r--gnu/packages/embedded.scm15
1 files changed, 7 insertions, 8 deletions
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 6b3acefea2..0dcfc6669f 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -1653,14 +1653,13 @@ STC89, STC90, STC10, STC11, STC12, STC15, STC8 and STC32 series.")
"1g5ahnj400sdf75k3xafawa6x0pzz7s86nqnfd65gqjr3bdlhlc6"))))
(build-system cmake-build-system)
(arguments
- `(#:tests? #f ;no tests
- #:configure-flags
- (let* ((out (assoc-ref %outputs "out"))
- (etc (in-vicinity out "etc"))
- (modprobe (in-vicinity etc "modprobe.d"))
- (udev-rules (in-vicinity etc "udev/rules.d")))
- (list (string-append "-DSTLINK_UDEV_RULES_DIR=" udev-rules)
- (string-append "-DSTLINK_MODPROBED_DIR=" modprobe)))))
+ (list #:tests? #f ;no tests
+ #:configure-flags
+ #~(let* ((etc (in-vicinity #$output "etc"))
+ (modprobe (in-vicinity etc "modprobe.d"))
+ (udev-rules (in-vicinity etc "udev/rules.d")))
+ (list (string-append "-DSTLINK_UDEV_RULES_DIR=" udev-rules)
+ (string-append "-DSTLINK_MODPROBED_DIR=" modprobe)))))
(inputs
(list libusb))
(synopsis "Programmer for STM32 Discovery boards")