aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2024-08-20 23:38:51 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2024-08-20 23:42:52 +0200
commitb87b96b9c7a2c5f34c34d69559cdee236ca50ec2 (patch)
treeae93d7f6f3608c2c289675636f0be52af37c2a30 /gnu/packages
parent9f066c813b87e7e78b7c49aad500a6a951d0f353 (diff)
downloadguix-b87b96b9c7a2c5f34c34d69559cdee236ca50ec2.tar.gz
guix-b87b96b9c7a2c5f34c34d69559cdee236ca50ec2.zip
gnu: make-qmk-firmware/implementation: Replace "/" in package name by "-".
* gnu/packages/firmware.scm (make-qmk-firmware/implementation): Replace "/" in package name by "-". Change-Id: I5cca6d21e52171a5fb1231ea1632661550b4a950
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/firmware.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index 7908e1a3fc..4348612567 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -88,6 +88,7 @@
#:use-module (gnu packages xml)
#:use-module (ice-9 format)
#:use-module (ice-9 match)
+ #:use-module (ice-9 regex)
#:export (make-ergodox-firmware
make-qmk-firmware))
@@ -1523,7 +1524,9 @@ upstream repository, provide a file-like object directory containing the whole
keyboard definition in KEYBOARD-SOURCE-DIRECTORY."
(package
(name (string-append "qmk-firmware-"
- (string-replace-substring keyboard "_" "-") "-"
+ (regexp-substitute/global #f "[_/]" keyboard
+ 'pre "-" 'post)
+ "-"
(string-replace-substring keymap "_" "-")))
;; Note: When updating this package, make sure to also update the commit
;; used for the LUFA submodule in the 'copy-lufa-source' phase below.