From 90e8febd297f855e8103e91f11597ed817bb4566 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 19 Feb 2024 12:42:14 +0100 Subject: gnu: Add sugar-chat-activity. * gnu/packages/sugar.scm (sugar-chat-activity): New variable. Change-Id: I8c0245d2d31b1c824abeceea71d42b287890199b --- gnu/packages/sugar.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm index 191b054207..59d1f13730 100644 --- a/gnu/packages/sugar.scm +++ b/gnu/packages/sugar.scm @@ -482,6 +482,58 @@ a Tetris-like game.") license:gpl2+ license:gpl3+)))) +(define-public sugar-chat-activity + ;; The last release was in 2019 and since then commits have been published + ;; that include build fixes and translation updates. + (let ((commit "a6a14b99576619639fd82fd265c4af096bcf52dc") + (revision "1")) + (package + (name "sugar-chat-activity") + (version (git-version "86" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sugarlabs/chat") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1gp1ljazm119hqzwz0rkr6k588ngd68manndm808pj5vgbv7qsdq")))) + (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 gdk-pixbuf + gobject-introspection + gtk+ + gstreamer + gst-plugins-base + python-pygobject + sugar-toolkit-gtk3 + telepathy-glib)) + (native-inputs + (list gettext-minimal)) + (home-page "https://help.sugarlabs.org/chat.html") + (synopsis "Sugar activity to chat") + (description "Chat is an activity used to exchange messages with friends +or classmates.") + (license license:gpl2+)))) + (define-public sugar-help-activity (let ((commit "492531e95a4c60af9b85c79c59c24c06c2cd4bb3") (revision "1")) -- cgit v1.2.3