gnu: Add sugar-maze-activity.

* gnu/packages/sugar.scm (sugar-maze-activity): New variable.
This commit is contained in:
Ricardo Wurmus 2023-03-05 23:48:15 +01:00
parent 461577f0fc
commit 760be95385
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -637,6 +637,48 @@ (define-public sugar-log-activity
looking for why an activity or Sugar is not working properly.") looking for why an activity or Sugar is not working properly.")
(license license:gpl2+)))) (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 (define-public sugar-read-activity
(let ((commit "25f69e41a4fa69d93c73c0c9367b4777a014b1cd") (let ((commit "25f69e41a4fa69d93c73c0c9367b4777a014b1cd")
(revision "1")) (revision "1"))