summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-08-23 14:26:35 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-08-23 14:28:43 +0100
commit5dea1814d474d2afc80486aaed2700b9f289bbfe (patch)
tree8ebfc9f69a6b5a5a29a2849e789f7ed26327aa20 /gnu
parent978d536a4a974592387ffb8712c74ae0c507fad1 (diff)
gnu: exercism: Patch xdg-open path.
* gnu/packages/education.scm (exercism) [arguments] <phases>: Add 'patch-xdg-open. [inputs]: Add xdg-utils. Fixes guix/guix#2203 Change-Id: I877a2bbf2468662e8f481b5cf10099b9e63a1b65 Change-Id: Ie15ddb9465d03d308740a348fa2e2c1233ec6591
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/education.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm
index 8f70f0a7cb3..6842823fe85 100644
--- a/gnu/packages/education.scm
+++ b/gnu/packages/education.scm
@@ -1136,6 +1136,13 @@ machine, and more.")
#:test-subdirs #~(list "../../...")
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-xdg-open
+ (lambda* (#:key unpack-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" unpack-path)
+ (substitute* "browser/open.go"
+ (("xdg-open")
+ (string-append #$(this-package-input "xdg-utils")
+ "/bin/xdg-open"))))))
(add-after 'install 'install-completions
(lambda* (#:key outputs #:allow-other-keys)
(let* ((exercism (string-append #$output "/bin/exercism"))
@@ -1168,6 +1175,8 @@ machine, and more.")
go-github-com-stretchr-testify
go-golang-org-x-net
go-golang-org-x-text))
+ (inputs
+ (list xdg-utils))
(home-page "https://exercism.org/")
(synopsis "Mentored learning for programming languages")
(description