all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* foreign-distro?
@ 2022-11-20 20:54 jgart
  2022-11-20 22:08 ` foreign-distro? Julien Lepiller
  2022-11-23 10:36 ` foreign-distro? Zhu Zihao
  0 siblings, 2 replies; 5+ messages in thread
From: jgart @ 2022-11-20 20:54 UTC (permalink / raw)
  To: Guix Devel

Does Guix have a declarative Guix API way of knowing if it is installing
a package into foreign distro versus Guix System?

I'm thinking of a function like `foreign-distro?`:

```
(define-public peek
  (package
   (name "peek")
   ...
(inputs 
  `(,@(if (foreign-distro?) `(("ffmpeg" ,ffmpeg)) '())))
```

The above includes ffmpeg in the inputs only if installing peek on a
foreign distro. It could additionally patch the ffmpeg executable in
a peek package phases if foreign-distro? returns #t.

WDYT


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-23 12:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-20 20:54 foreign-distro? jgart
2022-11-20 22:08 ` foreign-distro? Julien Lepiller
2022-11-21  1:57   ` foreign-distro? Jake Shilling
2022-11-23 10:36 ` foreign-distro? Zhu Zihao
2022-11-23 12:34   ` foreign-distro? Wojtek Kosior via Development of GNU Guix and the GNU System distribution.

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.