From: tumashu <tumashu@163.com>
To: guix <guix-devel@gnu.org>
Subject: native-search-paths search-path-specification do not work in glib-or-gtk-build-system
Date: Sun, 27 Feb 2022 18:52:19 +0800 (CST) [thread overview]
Message-ID: <3f315777.1a9a.17f3acf5166.Coremail.tumashu@163.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4605 bytes --]
Hello:
I want to include CAJA_EXTENSION_DIRS setup in ~/.guix-profile/etc/profile file,
and the below code seem to do not work in glib-or-gtk-build-system
(native-search-paths
(list (search-path-specification
(variable "CAJA_EXTENSION_DIRS")
(files (list "lib/caja/extensions-2.0")))
Any other steps are needed?
----------------------------------------------------------------------------------------
cat ~/.guix-profile/etc/profile
# Source this file to define all the relevant environment variables in Bash
# for this profile. You may want to define the 'GUIX_PROFILE' environment
# variable to point to the "visible" name of the profile, like this:
#
# GUIX_PROFILE=/path/to/profile ; \
# source /path/to/profile/etc/profile
#
# When GUIX_PROFILE is undefined, the various environment variables refer
# to this specific profile generation.
export PATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/bin:${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/sbin${PATH:+:}$PATH"
export XDG_DATA_DIRS="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
export XCURSOR_PATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/share/icons${XCURSOR_PATH:+:}$XCURSOR_PATH"
export GUIX_GTK3_PATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/lib/gtk-3.0${GUIX_GTK3_PATH:+:}$GUIX_GTK3_PATH"
export GST_PLUGIN_SYSTEM_PATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/lib/gstreamer-1.0${GST_PLUGIN_SYSTEM_PATH:+:}$GST_PLUGIN_SYSTEM_PATH"
export GDK_PIXBUF_MODULE_FILE="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
export FCITX_ADDON_DIRS="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/lib/fcitx5${FCITX_ADDON_DIRS:+:}$FCITX_ADDON_DIRS"
export HGEXTENSIONPATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/lib/python3.9/site-packages/hgext3rd${HGEXTENSIONPATH:+:}$HGEXTENSIONPATH"
export GIT_EXEC_PATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/libexec/git-core"
export INFOPATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/share/info${INFOPATH:+:}$INFOPATH"
export EMACSLOADPATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/share/emacs/site-lisp${EMACSLOADPATH:+:}$EMACSLOADPATH"
----------------------------------------------------------------------------------------------------------------
The below is caja's define:
(define-public caja
(package
(name "caja")
(version "1.26.0")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://mate/" (version-major+minor version) "/"
name "-" version ".tar.xz"))
(sha256
(base32
"1m0ai2r8b2mvlr8bqj9n6vg1pwzlwa46fqpq206wgyx5sgxac052"))))
(build-system glib-or-gtk-build-system)
(arguments
(list
#:configure-flags #~(list "--disable-update-mimedb")
#:tests? #f ; tests fail even with display set
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'pre-check
(lambda _
;; Tests require a running X server.
(system "Xvfb :1 &")
(setenv "DISPLAY" ":1")
;; For the missing /etc/machine-id.
(setenv "DBUS_FATAL_WARNINGS" "0"))))))
(native-inputs
(list pkg-config
intltool
`(,glib "bin")
xorg-server
gobject-introspection))
(inputs
(list exempi
gtk+
gvfs
libexif
libnotify
libsm
libxml2
mate-desktop
startup-notification))
(native-search-paths
(list (search-path-specification
(variable "CAJA_EXTENSION_DIRS")
(files (list "lib/caja/extensions-2.0")))))
(home-page "https://mate-desktop.org/")
(synopsis "File manager for the MATE desktop")
(description
"Caja is the official file manager for the MATE desktop.
It allows for browsing directories, as well as previewing files and launching
applications associated with them. Caja is also responsible for handling the
icons on the MATE desktop. It works on local and remote file systems.")
;; There is a note about a TRADEMARKS_NOTICE file in COPYING which
;; does not exist. It is safe to assume that this is of no concern
;; for us.
(license license:gpl2+)))
[-- Attachment #2: Type: text/html, Size: 7466 bytes --]
next reply other threads:[~2022-02-27 10:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-27 10:52 tumashu [this message]
2022-02-27 10:58 ` native-search-paths search-path-specification do not work in glib-or-gtk-build-system Maxime Devos
2022-02-27 11:25 ` tumashu
2022-02-28 0:22 ` tumashu
2022-02-28 17:56 ` Maxime Devos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3f315777.1a9a.17f3acf5166.Coremail.tumashu@163.com \
--to=tumashu@163.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).