From 5dea1814d474d2afc80486aaed2700b9f289bbfe Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 23 Aug 2025 14:26:35 +0100 Subject: [PATCH] gnu: exercism: Patch xdg-open path. * gnu/packages/education.scm (exercism) [arguments] : Add 'patch-xdg-open. [inputs]: Add xdg-utils. Fixes guix/guix#2203 Change-Id: I877a2bbf2468662e8f481b5cf10099b9e63a1b65 Change-Id: Ie15ddb9465d03d308740a348fa2e2c1233ec6591 --- gnu/packages/education.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 8f70f0a7cb3fee83db8cd2a70616a4ceb4e37eda..6842823fe85bfb3c443d52abb5f1a012c2585d83 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