* Inject custom search specification into profile @ 2020-11-27 4:03 Zhu Zihao 2020-11-27 6:25 ` Zhu Zihao 0 siblings, 1 reply; 3+ messages in thread From: Zhu Zihao @ 2020-11-27 4:03 UTC (permalink / raw) To: help-guix [-- Attachment #1: Type: text/plain, Size: 729 bytes --] Hi, Guix users! Recently, I read Guix cookbook and wanna separate some of my packages into a dedicated profile. For example, I wanna put match-theme under ~/.guix-profiles.d/theme/theme. and source ~/.guix-profiles.d/theme/theme/etc/profile in ~/.profile. But my XFCE still unable to find matcha theme. Because there's no XDG_DATA_DIRS definition in <path to theme profile>/etc/profile. So, the question is, how to inject a search path specification into a profile? I may add something like qtbase or glib to add XDG_DATA_DIRS spec. But it's too heavy, maybe I can add a pseudo package only contains search path spec to profile? -- Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp Zihao [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 515 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Inject custom search specification into profile 2020-11-27 4:03 Inject custom search specification into profile Zhu Zihao @ 2020-11-27 6:25 ` Zhu Zihao 2020-11-27 8:27 ` Pierre Neidhardt 0 siblings, 1 reply; 3+ messages in thread From: Zhu Zihao @ 2020-11-27 6:25 UTC (permalink / raw) To: help-guix [-- Attachment #1: Type: text/plain, Size: 684 bytes --] Here's what currently I do (use-modules (guix packages) (guix build-system trivial) (guix search-paths) (guix profile)) (define (search-paths-placeholder specs) (package (name "search-paths-placeholder") (version "0.0") (source #f) (build-system trivial-build-system) (arguments '(#:builder (begin (mkdir %output #t)))) (synopsis #f) (description #f) (home-page #f) (native-search-paths specs) (license #f))) And add this placeholder to manifest. Does Guix provide a better way to achieve such goal? -- Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp Zihao [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 515 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Inject custom search specification into profile 2020-11-27 6:25 ` Zhu Zihao @ 2020-11-27 8:27 ` Pierre Neidhardt 0 siblings, 0 replies; 3+ messages in thread From: Pierre Neidhardt @ 2020-11-27 8:27 UTC (permalink / raw) To: Zhu Zihao, help-guix [-- Attachment #1: Type: text/plain, Size: 651 bytes --] Hi! The trick is that etc/profile exports environment variables for the packages that explicitly consume them, not for packages that are consumed by others. I don't know about Xfce, so I'll give you an example with pkg-config: if you install just webkitgtk to a profile, its lib/pkgconfig/*.pc files won't be detected by a `pkg-config` executable (that comes from a different profile). If you include `pkg-config` itself in the profile, then the profile *.pc files will be found. I suppose that for Xfce you need to install a component that looks up XDG_DATA_DIRS. Hope that helps! -- Pierre Neidhardt https://ambrevar.xyz/ [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 511 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-27 8:28 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-11-27 4:03 Inject custom search specification into profile Zhu Zihao 2020-11-27 6:25 ` Zhu Zihao 2020-11-27 8:27 ` Pierre Neidhardt
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).