summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-03-05 23:48:15 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-03-06 14:55:06 +0100
commit760be95385765a9c19c710c2320b3ef584ef63c2 (patch)
tree9646e510e3f726f0dff0b73fd255298b968addbd /gnu
parent461577f0fce1b69a88a752857eeee2e9e1116d6c (diff)
gnu: Add sugar-maze-activity.
* gnu/packages/sugar.scm (sugar-maze-activity): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/sugar.scm42
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index 5aa01116b8..375943a5b4 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -637,6 +637,48 @@ like @file{.m3u} and @file{.pls}.")
looking for why an activity or Sugar is not working properly.")
(license license:gpl2+))))
+(define-public sugar-maze-activity
+ (package
+ (name "sugar-maze-activity")
+ (version "31")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sugarlabs/maze-activity")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0ai2ws3mqkxi13chy0hidd1gxiv97862r9lg8qgxb7qkxqyh6afr"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:test-target "check"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-launcher
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "activity/activity.info"
+ (("exec = sugar-activity3")
+ (string-append "exec = "
+ (search-input-file inputs "/bin/sugar-activity3"))))))
+ (replace 'install
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (invoke "python" "setup.py" "install"
+ (string-append "--prefix=" #$output)))))))
+ ;; All these libraries are accessed via gobject introspection.
+ (propagated-inputs
+ (list gtk+
+ telepathy-glib))
+ (inputs
+ (list sugar-toolkit-gtk3 gettext-minimal))
+ (home-page "https://github.com/sugarlabs/maze-activity")
+ (synopsis "Simple maze game for the Sugar learning environment")
+ (description "Try to make your way through an increasingly difficult path,
+or you can also play with a friend!")
+ (license license:gpl3+)))
+
(define-public sugar-read-activity
(let ((commit "25f69e41a4fa69d93c73c0c9367b4777a014b1cd")
(revision "1"))