diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2024-08-20 18:19:24 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2024-08-20 22:18:00 +0200 |
| commit | e1f17fc3404e626cdeeb2890ab5b7844a3bd1f88 (patch) | |
| tree | cb3cc197becd1e88d845e99a0ece9d7f5a624812 /gnu/packages/sugar.scm | |
| parent | fb96a7f5d05aeba8f24ab832326302591b995f3c (diff) | |
gnu: Add sugar-commander-activity.
* gnu/packages/sugar.scm (sugar-commander-activity): New variable.
Change-Id: I147999d64ef52e8b070ba96b0928ae19ae620d20
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 4611d68cbc8..18b96041a54 100644 --- a/gnu/packages/sugar.scm +++ b/gnu/packages/sugar.scm | |||
| @@ -660,6 +660,72 @@ or classmates.") | |||
| 660 | on various criteria.") | 660 | on various criteria.") |
| 661 | (license license:gpl3+)))) | 661 | (license license:gpl3+)))) |
| 662 | 662 | ||
| 663 | (define-public sugar-commander-activity | ||
| 664 | (let ((commit "a018652903e1c52c86ebf23e3250e7b68327427f") | ||
| 665 | (revision "1")) | ||
| 666 | (package | ||
| 667 | (name "sugar-commander-activity") | ||
| 668 | (version (git-version "11" revision commit)) | ||
| 669 | (source (origin | ||
| 670 | (method git-fetch) | ||
| 671 | (uri (git-reference | ||
| 672 | (url "https://github.com/sugarlabs/sugar-commander") | ||
| 673 | (commit commit))) | ||
| 674 | (file-name (git-file-name name version)) | ||
| 675 | (sha256 | ||
| 676 | (base32 | ||
| 677 | "02n5wqh9cwr3jnjaxyd9kxcls4h3fdhhxdcyvvxmya08h20idvgd")))) | ||
| 678 | (build-system python-build-system) | ||
| 679 | (arguments | ||
| 680 | (list | ||
| 681 | #:test-target "check" | ||
| 682 | #:phases | ||
| 683 | #~(modify-phases %standard-phases | ||
| 684 | (add-after 'unpack 'patch-launcher | ||
| 685 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 686 | (substitute* "activity/activity.info" | ||
| 687 | (("exec = sugar-activity3") | ||
| 688 | (string-append "exec = " | ||
| 689 | (search-input-file inputs "/bin/sugar-activity3")))))) | ||
| 690 | (add-after 'unpack 'inject-load-path | ||
| 691 | (lambda _ | ||
| 692 | (substitute* "sugarcommander.py" | ||
| 693 | (("^import logging") | ||
| 694 | (string-append "\ | ||
| 695 | import sys | ||
| 696 | for directory in \"" (getenv "GUIX_PYTHONPATH") "\".split(\":\"): | ||
| 697 | try: | ||
| 698 | sys.path.index(directory) | ||
| 699 | except ValueError: | ||
| 700 | sys.path.insert(1, directory) | ||
| 701 | import logging | ||
| 702 | "))))) | ||
| 703 | (replace 'install | ||
| 704 | (lambda _ | ||
| 705 | (setenv "HOME" "/tmp") | ||
| 706 | (invoke "python" "setup.py" "install" | ||
| 707 | (string-append "--prefix=" #$output))))))) | ||
| 708 | ;; All these libraries are accessed via gobject introspection. | ||
| 709 | (propagated-inputs | ||
| 710 | (list cairo | ||
| 711 | gdk-pixbuf | ||
| 712 | gobject-introspection | ||
| 713 | gtk+ | ||
| 714 | python-pygobject | ||
| 715 | sugar-toolkit-gtk3)) | ||
| 716 | (inputs (list python-pygame)) | ||
| 717 | (native-inputs | ||
| 718 | (list gettext-minimal)) | ||
| 719 | (home-page "https://github.com/sugarlabs/sugar-commander") | ||
| 720 | (synopsis "Manage your Sugar journal") | ||
| 721 | (description "Sugar-commander lets you import items from removeable | ||
| 722 | devices like USB drives and SD cards using a familiar hierarchical view of | ||
| 723 | files on these devices, as opposed to the flattened Journal view that the | ||
| 724 | Sugar Journal gives to these devices. It also enables you to see how much | ||
| 725 | disk space each Journal entry uses, generates thumbnails, and does other | ||
| 726 | things to enhance your use of the Journal.") | ||
| 727 | (license license:gpl2+)))) | ||
| 728 | |||
| 663 | (define-public sugar-help-activity | 729 | (define-public sugar-help-activity |
| 664 | (let ((commit "492531e95a4c60af9b85c79c59c24c06c2cd4bb3") | 730 | (let ((commit "492531e95a4c60af9b85c79c59c24c06c2cd4bb3") |
| 665 | (revision "1")) | 731 | (revision "1")) |
