summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-02-28 12:17:14 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-02-28 13:46:49 +0100
commit5e22f8962a737c52268034a70f2353f293bf20ee (patch)
tree09c78fcef2092f7a422eab6037f33d8e96cdc3a5
parent3bb2078a12d78a13f1e1520fe3705333a74ef6e3 (diff)
downloadguix-5e22f8962a737c52268034a70f2353f293bf20ee.tar.gz
gnu: sugar-typing-turtle-activity: Add setxkbmap to inputs.
* gnu/packages/sugar.scm (sugar-typing-turtle-activity)[inputs]: Add
setxkbmap.
[arguments]: Patch invocation of setxkbmap.
-rw-r--r--gnu/packages/sugar.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index 4e0ef24960..3c5b7e0a55 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -407,6 +407,11 @@ to provide users with easy access to documentation and manuals.")
       #:test-target "check"
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-reference-to-executables
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "keyboard.py"
+                (("setxkbmap")
+                 (search-input-file inputs "/bin/setxkbmap")))))
           (add-after 'unpack 'patch-launcher
             (lambda* (#:key inputs #:allow-other-keys)
               (substitute* "activity/activity.info"
@@ -419,6 +424,8 @@ to provide users with easy access to documentation and manuals.")
                       (string-append "--prefix=" #$output)))))))
     (native-inputs
      (list gettext-minimal sugar-toolkit-gtk3))
+    (inputs
+     (list setxkbmap))
     (home-page "https://help.sugarlabs.org/en/typing_turtle.html")
     (synopsis "Learn typing")
     (description "Need some help typing?  In this activity for the Sugar