gnu: seed: Fix tests.
authorDanny Milosavljevic <dannym@scratchpost.org>
Sun, 2 Aug 2020 18:54:34 +0000 (20:54 +0200)
committerDanny Milosavljevic <dannym@scratchpost.org>
Tue, 18 Aug 2020 21:11:16 +0000 (23:11 +0200)
* gnu/packages/gnome.scm (seed)[arguments]<#:phases>[patch-tests]: New phase.

gnu/packages/gnome.scm

index 2abb73a..6923522 100644 (file)
@@ -329,6 +329,12 @@ bindings.")
                         "configure"
                         "Makefile.in"))
              #t))
+         (add-after 'unpack 'patch-tests
+           (lambda* (#:key outputs #:allow-other-keys)
+             (substitute* (find-files "." "\\.js$")
+              (("#!/usr/bin/env seed")
+               (string-append "#!" (getcwd) "/src/seed")))
+             #t))
          (add-before 'build 'patch-docbook-xml
            (lambda* (#:key inputs #:allow-other-keys)
              (with-directory-excursion "doc"