diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2024-08-20 17:02:21 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2024-08-20 22:18:00 +0200 |
| commit | c22ee2b5ea03416b3ac04fc28c7390e82d84c69f (patch) | |
| tree | a0efc311e21ff66935ee3e6b581e517a2d3ecb23 /gnu | |
| parent | ae748e9ba6035bf6b91f5803cfc5122ffca1d2e7 (diff) | |
gnu: Add sugar-cellgame-activity.
* gnu/packages/sugar.scm (sugar-cellgame-activity): New variable.
Change-Id: If81eff3b726b90c7454edcd08b2b8421067ce648
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/sugar.scm | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm index 25cfbad13e5..2cc5dc16858 100644 --- a/gnu/packages/sugar.scm +++ b/gnu/packages/sugar.scm | |||
| @@ -503,6 +503,64 @@ a Tetris-like game.") | |||
| 503 | license:gpl2+ | 503 | license:gpl2+ |
| 504 | license:gpl3+)))) | 504 | license:gpl3+)))) |
| 505 | 505 | ||
| 506 | (define-public sugar-cellgame-activity | ||
| 507 | (let ((commit "4a22fd177af224d2df588590eb835affacd5ca72") | ||
| 508 | (revision "1")) | ||
| 509 | (package | ||
| 510 | (name "sugar-cellgame-activity") | ||
| 511 | (version (git-version "5" revision commit)) | ||
| 512 | (source (origin | ||
| 513 | (method git-fetch) | ||
| 514 | (uri (git-reference | ||
| 515 | (url "https://github.com/sugarlabs/cellgame") | ||
| 516 | (commit commit))) | ||
| 517 | (file-name (git-file-name name version)) | ||
| 518 | (sha256 | ||
| 519 | (base32 | ||
| 520 | "09dxq06dr43i3g8im4j1xffl19rzr1pwbixwgb0kipnmbx8pln5c")))) | ||
| 521 | (build-system python-build-system) | ||
| 522 | (arguments | ||
| 523 | (list | ||
| 524 | #:test-target "check" | ||
| 525 | #:phases | ||
| 526 | #~(modify-phases %standard-phases | ||
| 527 | (add-after 'unpack 'patch-launcher | ||
| 528 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 529 | (substitute* "activity/activity.info" | ||
| 530 | (("exec = sugar-activity3") | ||
| 531 | (string-append "exec = " | ||
| 532 | (search-input-file inputs "/bin/sugar-activity3")))))) | ||
| 533 | (add-after 'unpack 'inject-load-path | ||
| 534 | (lambda _ | ||
| 535 | (substitute* "activity.py" | ||
| 536 | (("^import pygame") | ||
| 537 | (string-append "\ | ||
| 538 | import sys | ||
| 539 | for directory in \"" (getenv "GUIX_PYTHONPATH") "\".split(\":\"): | ||
| 540 | try: | ||
| 541 | sys.path.index(directory) | ||
| 542 | except ValueError: | ||
| 543 | sys.path.insert(1, directory) | ||
| 544 | import pygame | ||
| 545 | "))))) | ||
| 546 | (replace 'install | ||
| 547 | (lambda _ | ||
| 548 | (setenv "HOME" "/tmp") | ||
| 549 | (invoke "python" "setup.py" "install" | ||
| 550 | (string-append "--prefix=" #$output))))))) | ||
| 551 | ;; All these libraries are accessed via gobject introspection. | ||
| 552 | (propagated-inputs | ||
| 553 | (list gtk+ | ||
| 554 | sugar-toolkit-gtk3)) | ||
| 555 | (inputs (list python-pygame)) | ||
| 556 | (native-inputs | ||
| 557 | (list gettext-minimal)) | ||
| 558 | (home-page "https://github.com/sugarlabs/cellgame") | ||
| 559 | (synopsis "Cell game for Sugar") | ||
| 560 | (description "This game for the Sugar desktop is based on the mechanisms | ||
| 561 | present in gene regulatory networks.") | ||
| 562 | (license license:gpl3+)))) | ||
| 563 | |||
| 506 | (define-public sugar-chat-activity | 564 | (define-public sugar-chat-activity |
| 507 | ;; The last release was in 2019 and since then commits have been published | 565 | ;; The last release was in 2019 and since then commits have been published |
| 508 | ;; that include build fixes and translation updates. | 566 | ;; that include build fixes and translation updates. |
