~ruther/guix-local

5dea1814d474d2afc80486aaed2700b9f289bbfe — Sharlatan Hellseher 9 months ago 978d536
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
1 files changed, 9 insertions(+), 0 deletions(-)

M gnu/packages/education.scm
M gnu/packages/education.scm => gnu/packages/education.scm +9 -0
@@ 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