Re: Inject custom search specification into profile
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/ signature.asc Description: PGP signature
Re: Inject custom search specification into profile
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 signature.asc Description: PGP signature
Inject custom search specification into profile
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 /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 signature.asc Description: PGP signature