diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2024-08-20 17:01:37 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2024-08-20 22:17:59 +0200 |
| commit | ae748e9ba6035bf6b91f5803cfc5122ffca1d2e7 (patch) | |
| tree | 958ab5bb78597eb628a1626fc89fc7df483a5c14 /gnu/packages/sugar.scm | |
| parent | bef48dd553aef3c8fb3bc48143739debb629c825 (diff) | |
gnu: sugar-toolkit-gtk3: Add missing inputs and patch references.
* gnu/packages/sugar.scm (sugar-toolkit-gtk3)[arguments]: Add phase
'patch-references.
[inputs]: Add shared-mime-info and unzip.
Change-Id: Id34b0e8696b655b4788cd5d40b1ca78a5eb34597
Diffstat (limited to 'gnu/packages/sugar.scm')
| -rw-r--r-- | gnu/packages/sugar.scm | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm index 5db070a72dc..25cfbad13e5 100644 --- a/gnu/packages/sugar.scm +++ b/gnu/packages/sugar.scm | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #:use-module (gnu packages autotools) | 23 | #:use-module (gnu packages autotools) |
| 24 | #:use-module (gnu packages base) | 24 | #:use-module (gnu packages base) |
| 25 | #:use-module (gnu packages bash) | 25 | #:use-module (gnu packages bash) |
| 26 | #:use-module (gnu packages compression) | ||
| 26 | #:use-module (gnu packages freedesktop) | 27 | #:use-module (gnu packages freedesktop) |
| 27 | #:use-module (gnu packages game-development) | 28 | #:use-module (gnu packages game-development) |
| 28 | #:use-module (gnu packages gettext) | 29 | #:use-module (gnu packages gettext) |
| @@ -329,6 +330,23 @@ and metadata, and the journal with querying and full text search.") | |||
| 329 | (substitute* "autogen.sh" | 330 | (substitute* "autogen.sh" |
| 330 | (("^\"\\$srcdir/configure" m) | 331 | (("^\"\\$srcdir/configure" m) |
| 331 | (string-append "#" m))))) | 332 | (string-append "#" m))))) |
| 333 | (add-after 'unpack 'patch-references | ||
| 334 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 335 | (substitute* "src/sugar3/eggsmclient-xsmp.c" | ||
| 336 | (("/bin/rm") (search-input-file inputs "/bin/rm"))) | ||
| 337 | (substitute* "src/sugar3/mime.py" | ||
| 338 | (("'/usr/local/share/'" m) | ||
| 339 | (string-append m ", '/run/current-system/profile/share'"))) | ||
| 340 | (substitute* "src/sugar3/bundle/activitybundle.py" | ||
| 341 | (("'update-mime-database', mime_dir") | ||
| 342 | (string-append "'" | ||
| 343 | (search-input-file inputs "/bin/update-mime-database") | ||
| 344 | "', mime_dir"))) | ||
| 345 | (substitute* "src/sugar3/bundle/bundle.py" | ||
| 346 | (("'unzip', '-o'") | ||
| 347 | (string-append "'" | ||
| 348 | (search-input-file inputs "/bin/unzip") | ||
| 349 | "', '-o'"))))) | ||
| 332 | (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap | 350 | (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap |
| 333 | (lambda* (#:key inputs outputs #:allow-other-keys) | 351 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 334 | (wrap-program (search-input-file outputs "bin/sugar-activity3") | 352 | (wrap-program (search-input-file outputs "bin/sugar-activity3") |
| @@ -345,7 +363,9 @@ and metadata, and the journal with querying and full text search.") | |||
| 345 | libx11 | 363 | libx11 |
| 346 | libxfixes | 364 | libxfixes |
| 347 | libxi | 365 | libxi |
| 348 | python)) | 366 | python |
| 367 | shared-mime-info | ||
| 368 | unzip)) | ||
| 349 | (propagated-inputs | 369 | (propagated-inputs |
| 350 | ;; The gi typelib files are needed by users of this library. | 370 | ;; The gi typelib files are needed by users of this library. |
| 351 | (list gdk-pixbuf | 371 | (list gdk-pixbuf |
