diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2024-08-20 17:02:58 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2024-08-20 22:18:00 +0200 |
| commit | fb96a7f5d05aeba8f24ab832326302591b995f3c (patch) | |
| tree | df7ad3195a8f0deaf11683c9cbe8c52fe858eec9 /gnu/packages/sugar.scm | |
| parent | e0633e56dc0cec3c13729255c7b804f27c722782 (diff) | |
gnu: Add sugar-turtlepond-activity.
* gnu/packages/sugar.scm (sugar-turtlepond-activity): New variable.
Change-Id: I2f2e5323acf9734fd35cae1d2174aea4719b3b7f
Diffstat (limited to 'gnu/packages/sugar.scm')
| -rw-r--r-- | gnu/packages/sugar.scm | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm index bacb38111c4..4611d68cbc8 100644 --- a/gnu/packages/sugar.scm +++ b/gnu/packages/sugar.scm | |||
| @@ -1155,6 +1155,72 @@ mathematics, and Computer Science features which will challenge the more | |||
| 1155 | adventurous student.") | 1155 | adventurous student.") |
| 1156 | (license license:expat)))) | 1156 | (license license:expat)))) |
| 1157 | 1157 | ||
| 1158 | (define-public sugar-turtlepond-activity | ||
| 1159 | (let ((commit "e460fc472d2f900c4c71659dbec07a715a3847a7") | ||
| 1160 | (revision "1")) | ||
| 1161 | (package | ||
| 1162 | (name "sugar-turtlepond-activity") | ||
| 1163 | (version (git-version "10" revision commit)) | ||
| 1164 | (source (origin | ||
| 1165 | (method git-fetch) | ||
| 1166 | (uri (git-reference | ||
| 1167 | (url "https://github.com/sugarlabs/turtlepond") | ||
| 1168 | (commit commit))) | ||
| 1169 | (file-name (git-file-name name version)) | ||
| 1170 | (sha256 | ||
| 1171 | (base32 | ||
| 1172 | "0j7jzbwi2aph312f5dazmwgxqzh458b4yzz8mvrdxpr91ksxd4h4")))) | ||
| 1173 | (build-system python-build-system) | ||
| 1174 | (arguments | ||
| 1175 | (list | ||
| 1176 | #:test-target "check" | ||
| 1177 | #:phases | ||
| 1178 | #~(modify-phases %standard-phases | ||
| 1179 | (add-after 'unpack 'patch-launcher | ||
| 1180 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 1181 | (substitute* "activity/activity.info" | ||
| 1182 | (("exec = sugar-activity3") | ||
| 1183 | (string-append "exec = " | ||
| 1184 | (search-input-file inputs "/bin/sugar-activity3")))))) | ||
| 1185 | #; | ||
| 1186 | (add-after 'unpack 'inject-load-path | ||
| 1187 | (lambda _ | ||
| 1188 | (substitute* "TurtlePondActivity.py" | ||
| 1189 | (("^import logging") | ||
| 1190 | (string-append "\ | ||
| 1191 | import sys | ||
| 1192 | for directory in \"" (getenv "GUIX_PYTHONPATH") "\".split(\":\"): | ||
| 1193 | try: | ||
| 1194 | sys.path.index(directory) | ||
| 1195 | except ValueError: | ||
| 1196 | sys.path.insert(1, directory) | ||
| 1197 | import logging | ||
| 1198 | "))))) | ||
| 1199 | (replace 'install | ||
| 1200 | (lambda _ | ||
| 1201 | (setenv "HOME" "/tmp") | ||
| 1202 | (invoke "python" "setup.py" "install" | ||
| 1203 | (string-append "--prefix=" #$output))))))) | ||
| 1204 | ;; All these libraries are accessed via gobject introspection. | ||
| 1205 | (propagated-inputs | ||
| 1206 | (list cairo | ||
| 1207 | gdk-pixbuf | ||
| 1208 | gobject-introspection | ||
| 1209 | gtk+ | ||
| 1210 | python-pygobject | ||
| 1211 | sugar-toolkit-gtk3)) | ||
| 1212 | (native-inputs | ||
| 1213 | (list gettext-minimal)) | ||
| 1214 | (home-page "https://github.com/sugarlabs/sugar-commander") | ||
| 1215 | (synopsis "Manage your Sugar journal") | ||
| 1216 | (description "Sugar-commander lets you import items from removeable | ||
| 1217 | devices like USB drives and SD cards using a familiar hierarchical view of | ||
| 1218 | files on these devices, as opposed to the flattened Journal view that the | ||
| 1219 | Sugar Journal gives to these devices. It also enables you to see how much | ||
| 1220 | disk space each Journal entry uses, generates thumbnails, and does other | ||
| 1221 | things to enhance your use of the Journal.") | ||
| 1222 | (license license:gpl2+)))) | ||
| 1223 | |||
| 1158 | (define-public sugar-typing-turtle-activity | 1224 | (define-public sugar-typing-turtle-activity |
| 1159 | (package | 1225 | (package |
| 1160 | (name "sugar-typing-turtle-activity") | 1226 | (name "sugar-typing-turtle-activity") |
